|
| 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 | |
|---|---|
abstract void |
addToPasteBuffer(RemoteFileMetadataInterface node)
Add the given metadata node to the paste buffer. |
abstract void |
clearPasteBuffer()
Clears the buffer of all metadata items. |
abstract 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. |
abstract java.lang.String |
createPathFromArray(java.lang.Object[] namesArray)
Given an array of folder names, this method returns a file system path. |
abstract java.lang.String |
getBasePath()
Returns the file system path used as the base for all navigation. |
abstract CacheModel |
getCacheModel()
Returns the cache model. |
abstract java.lang.String[] |
getColumnNames()
Returns the column names. |
abstract RemoteFileServiceModelInterface |
getModel()
Returns the model used to communicate with the file system. |
abstract RemoteFileMetadataInterface |
getNodeAt(int rowIndex)
Returns a RemoteFileMetadataInterface for specified index. |
abstract java.util.List |
getPasteBuffer()
Returns the contents of the paste buffer. |
abstract int |
getPasteBufferCommandType()
Returns the command type. |
abstract java.lang.String |
getPath()
Returns the file system path currently being viewed. |
abstract java.lang.String |
getServerName()
Returns the name of the file system top level. |
abstract com.sas.util.transforms.TransformInterface[] |
getTransforms()
Returns the transforms being used to get the metadata information. |
abstract boolean |
isCacheEnabled()
Returns the current status of cacheing. |
abstract boolean |
isTableEditable()
Determine if the table is editable. |
abstract boolean |
isUpwardPathRestricted()
Returns true if the model's current path is at the topmost path of the current server, false otherwise. |
abstract java.util.List |
parseIntoPathElements(java.lang.String path)
|
abstract void |
refresh()
Refreshes the currently viewed file system path. |
abstract void |
setCacheEnabled(boolean enabled)
Sets whether to allow cacheing of the file information. |
abstract void |
setColumnName(java.lang.String columnName,
int columnIndex)
Sets the name of the column at columnIndex to columnName. |
abstract void |
setColumnNames(java.lang.String[] columnNames)
Sets the column names used in by the table. |
abstract void |
setModel(RemoteFileServiceModelInterface newServiceModel)
Allows setting of the model to be used to communicate with the file system. |
abstract void |
setPasteBufferCommandType(int commandType)
Sets the paste buffer command type so it know's if we are copying or cutting the items. |
abstract void |
setPath(java.lang.String path)
Sets the file system path to be viewed. |
abstract void |
setPath(java.lang.String path,
boolean search)
Sets the file system path to be viewed. |
abstract void |
setTableEditable(boolean editable)
Set the table to state defined by editable. |
abstract void |
setTransform(com.sas.util.transforms.TransformInterface transform,
int columnIndex)
Sets the transform class for a columnIndex. |
abstract void |
setTransforms(com.sas.util.transforms.TransformInterface[] transforms)
Sets the transforms used to retrieve the metadata information. |
abstract java.lang.String[] |
splitDirectoryPathAndFileName(java.lang.String path)
The first object of the returned Pair |
abstract 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.IllegalArgumentExceptiongetPath()
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.IllegalArgumentExceptiongetPath()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 | |||||||||||||