|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteFileServerModelInterface
RemoteFileServerModelInterface defines the model interface that communicates between the service model and the user interface.
Method Summary | |
---|---|
void |
addToPasteBuffer(RemoteFileMetadataInterface node)
Add the given metadata node to the paste buffer. |
void |
clearPasteBuffer()
Clears the buffer of all metadata items. |
java.lang.String |
combineDirectoryPathAndFileName(java.lang.String path,
java.lang.String name)
Returns a concatenated file system path given an existing path and a folder/directory name. |
java.lang.String |
createPathFromArray(java.lang.Object[] namesArray)
Given an array of folder names, this method returns a file system path. |
java.lang.String |
getBasePath()
Returns the file system path used as the base for all navigation. |
CacheModel |
getCacheModel()
Returns the cache model. |
java.lang.String[] |
getColumnNames()
Returns the column names. |
RemoteFileServiceModelInterface |
getModel()
Returns the model used to communicate with the file system. |
RemoteFileMetadataInterface |
getNodeAt(int rowIndex)
Returns a RemoteFileMetadataInterface for specified index. |
java.util.List |
getPasteBuffer()
Returns the contents of the paste buffer. |
int |
getPasteBufferCommandType()
Returns the command type. |
java.lang.String |
getPath()
Returns the file system path currently being viewed. |
java.lang.String |
getServerName()
Returns the name of the file system top level. |
com.sas.util.transforms.TransformInterface[] |
getTransforms()
Returns the transforms being used to get the metadata information. |
boolean |
isCacheEnabled()
Returns the current status of cacheing. |
boolean |
isTableEditable()
Determine if the table is editable. |
boolean |
isUpwardPathRestricted()
Returns true if the model's current path is at the topmost path of the current server, false otherwise. |
java.util.List |
parseIntoPathElements(java.lang.String path)
|
void |
refresh()
Refreshes the currently viewed file system path. |
void |
setCacheEnabled(boolean enabled)
Sets whether to allow cacheing of the file information. |
void |
setColumnName(java.lang.String columnName,
int columnIndex)
Sets the name of the column at columnIndex to columnName. |
void |
setColumnNames(java.lang.String[] columnNames)
Sets the column names used in by the table. |
void |
setModel(RemoteFileServiceModelInterface newServiceModel)
Allows setting of the model to be used to communicate with the file system. |
void |
setPasteBufferCommandType(int commandType)
Sets the paste buffer command type so it know's if we are copying or cutting the items. |
void |
setPath(java.lang.String path)
Sets the file system path to be viewed. |
void |
setPath(java.lang.String path,
boolean search)
Sets the file system path to be viewed. |
void |
setTableEditable(boolean editable)
Set the table to state defined by editable. |
void |
setTransform(com.sas.util.transforms.TransformInterface transform,
int columnIndex)
Sets the transform class for a columnIndex. |
void |
setTransforms(com.sas.util.transforms.TransformInterface[] transforms)
Sets the transforms used to retrieve the metadata information. |
java.lang.String[] |
splitDirectoryPathAndFileName(java.lang.String path)
The first object of the returned Pair |
void |
updateFilteredValues(java.util.List newFilterValues)
Method is run when the file type filter is changed. |
Method Detail |
---|
void setPath(java.lang.String path) throws java.lang.IllegalArgumentException
path
- the file system path
java.lang.IllegalArgumentException
getPath()
void setPath(java.lang.String path, boolean search) throws java.lang.IllegalArgumentException
path
- the file system pathsearch
- specifies if this is a call from the search model
java.lang.IllegalArgumentException
getPath()
boolean isUpwardPathRestricted()
java.lang.String getBasePath()
java.lang.String getPath()
setPath(String)
java.lang.String combineDirectoryPathAndFileName(java.lang.String path, java.lang.String name)
path
- the existing file system pathname
- the folder/directory name
splitDirectoryPathAndFileName(String)
java.lang.String[] splitDirectoryPathAndFileName(java.lang.String path)
Pair is a String
representing the real name of the file (folder) at the supplied path. The term REAL here is used here to mean
that any relevant file extensions are included. The second object is a String
representing the
path to the parent directory.
For example the following call would return a Pair
whose first object is "DemoReport.xml"
and whose second object is "Bip Tree/CitationWeb/Shared"
Pair pathFileNamePair = splitDirectoryPathAndFileName("Bip Tree/CitationWeb/Shared/DemoReport.xml");
- Parameters:
path
- - See Also:
combineDirectoryPathAndFileName(String, String)
java.lang.String getServerName()
void setModel(RemoteFileServiceModelInterface newServiceModel)
newServiceModel
- the model that communicates with the file system.getModel()
RemoteFileServiceModelInterface getModel()
setModel(RemoteFileServiceModelInterface)
java.util.List parseIntoPathElements(java.lang.String path)
path
- the path
java.lang.String createPathFromArray(java.lang.Object[] namesArray)
namesArray
- the array of folder names
void updateFilteredValues(java.util.List newFilterValues)
newFilterValues
- the list of new filter type valuesvoid setCacheEnabled(boolean enabled)
enabled
- the status of cacheing, by default set to true = cache results, false = don't cacheisCacheEnabled()
boolean isCacheEnabled()
setCacheEnabled(boolean)
void refresh()
CacheModel getCacheModel()
RemoteFileMetadataInterface getNodeAt(int rowIndex)
rowIndex
- the specified table row
void setColumnNames(java.lang.String[] columnNames)
columnNames
- the column namesjava.lang.String[] getColumnNames()
setColumnNames(String[])
void setColumnName(java.lang.String columnName, int columnIndex)
columnName
- the new name of the columncolumnIndex
- the index of the columnvoid setTransforms(com.sas.util.transforms.TransformInterface[] transforms)
transforms
- the transformsgetTransforms()
com.sas.util.transforms.TransformInterface[] getTransforms()
setTransforms(TransformInterface[])
void setTransform(com.sas.util.transforms.TransformInterface transform, int columnIndex)
transform
- the transform classcolumnIndex
- the column to associate the transformboolean isTableEditable()
setTableEditable(boolean)
void setTableEditable(boolean editable)
editable
- the editable statusisTableEditable()
void addToPasteBuffer(RemoteFileMetadataInterface node)
node
- the node to be added.void clearPasteBuffer()
java.util.List getPasteBuffer()
void setPasteBufferCommandType(int commandType)
commandType
- the command type, copy = 0 and cut = 1getPasteBufferCommandType()
int getPasteBufferCommandType()
setPasteBufferCommandType(int)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |