|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.remotefileselector.informationservices.InformationServicesModel
public class InformationServicesModel
InformationServicesModel defines the model that communicates with the Information Service.
RemoteFileServerModel
,
Field Summary | |
---|---|
protected BaseActionProvider |
actionProvider
the action provider framework class |
protected java.util.List |
allFileList
stores all of the individual files and any sub folders |
protected java.lang.String |
currentPath
the file system path currently being displayed |
protected java.util.Date |
endDate
the end of a date range used for searching |
protected com.sas.services.information.FilterComponent |
filterComp
holds a piece of the filter to be specified |
protected com.sas.services.information.metadata.FilteredFolderInterface |
filteredFolder
stores the results of a call to get a list of files |
protected java.util.List |
filterValues
the values used to filter the file types |
static java.util.TimeZone |
GMT
prepresents the GMT time zone |
static java.lang.String |
INFOMAP
the value for information map types |
static java.lang.String |
RB_KEY
the resource key string |
protected RemoteFileServerModelInterface |
remoteFileServerModel
the model associates with the remote file selector |
static java.lang.String |
REPORTS
the value for report types |
protected com.sas.services.information.RepositoryInterface |
repository
the repository used to communicat with the file system |
protected com.sas.services.information.FilterInterface |
searchFilter
a filter specified to use when searching for files |
protected java.util.Date |
startDate
the beginning of a date range used for searching |
protected com.sas.services.information.metadata.FolderInterface |
startFolder
the folder location to start a search or retrieval of files |
static java.lang.String |
STPROC
the value for stored process types |
Constructor Summary | |
---|---|
InformationServicesModel(com.sas.services.information.RepositoryInterface repository)
Allows specification of the repository used to communicate with the file system. |
|
InformationServicesModel(com.sas.services.user.UserContextInterface user)
Allows specification of a UserContext to communicate with the file system. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener |
java.lang.String |
combineDirectoryPathAndFileName(java.lang.String path,
java.lang.String name)
Concatenates a path and a folder or file name. |
protected boolean |
filterData(com.sas.services.information.metadata.MetadataInterface item)
The method that does the actual filtering of metadata items. |
java.lang.String |
getDirectoryPath(java.lang.String path)
Returns a path for the file locations. |
java.util.List |
getFiles(java.lang.String path)
Returns the collection of files for file system path that is to be viewed. |
java.util.List |
getFilterValues()
Returns the currently set values to filter on. |
java.util.List |
getFolderInterfaceFiles(com.sas.services.information.metadata.FolderInterface folder)
Returns the collection of files for FolderInterface object that is to be viewed. |
java.lang.String |
getFullyQualifiedPath(java.lang.String currentPath,
java.lang.String fileName)
Returns the file system path. |
com.sas.services.information.RepositoryInterface |
getRepository()
Returns the information service repository being used. |
java.util.List |
getRepositoryList()
|
java.lang.String |
getTopLevelName()
Returns a name used to identify the top level in the view. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener |
void |
setFilterValues(java.util.List filterValues)
Sets a list of values to be used for filtering file types or extensions. |
void |
setRepository(com.sas.services.information.RepositoryInterface repository)
Sets the information service repository to be queried. |
java.lang.String[] |
splitDirectoryPathAndFileName(java.lang.String path)
Parses a given path into the parent directory and the folder name. |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final java.util.TimeZone GMT
public static final java.lang.String REPORTS
public static final java.lang.String INFOMAP
public static final java.lang.String STPROC
protected com.sas.services.information.RepositoryInterface repository
protected java.util.List filterValues
protected com.sas.services.information.FilterInterface searchFilter
protected com.sas.services.information.metadata.FilteredFolderInterface filteredFolder
protected java.util.List allFileList
protected com.sas.services.information.FilterComponent filterComp
protected com.sas.services.information.metadata.FolderInterface startFolder
protected java.lang.String currentPath
protected RemoteFileServerModelInterface remoteFileServerModel
protected BaseActionProvider actionProvider
protected java.util.Date startDate
protected java.util.Date endDate
Constructor Detail |
---|
public InformationServicesModel(com.sas.services.information.RepositoryInterface repository)
repository
- the information service repositorypublic InformationServicesModel(com.sas.services.user.UserContextInterface user)
user
- the UserContext classMethod Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface RemoteFileServiceModelInterface
listener
- the PropertyChangeListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
in interface RemoteFileServiceModelInterface
listener
- the PropertyChangeListenerpublic java.util.List getFiles(java.lang.String path)
getFiles
in interface RemoteFileServiceModelInterface
path
- the file system path.search
- set to true if the getFiles() should be run as a separate thread, false if not
RemoteFileMetadataInterface
,
com.sas.swing.models.remotefileselector.informationservices.InformationServiceFileMetadata
public java.util.List getFolderInterfaceFiles(com.sas.services.information.metadata.FolderInterface folder)
folder
- a FolderInterface object containing the file information to be viewed.
protected boolean filterData(com.sas.services.information.metadata.MetadataInterface item)
item
- the metadata item to be filtered
public java.lang.String[] splitDirectoryPathAndFileName(java.lang.String path)
splitDirectoryPathAndFileName
in interface RemoteFileServiceModelInterface
path
- the path to be parsed
public java.lang.String combineDirectoryPathAndFileName(java.lang.String path, java.lang.String name)
combineDirectoryPathAndFileName
in interface RemoteFileServiceModelInterface
path
- the parent pathname
- the name to be appended
public java.lang.String getTopLevelName()
getTopLevelName
in interface RemoteFileServiceModelInterface
public java.lang.String getFullyQualifiedPath(java.lang.String currentPath, java.lang.String fileName)
getFullyQualifiedPath
in interface RemoteFileServiceModelInterface
currentPath
- the original path that needs to be fully qualified
public java.lang.String getDirectoryPath(java.lang.String path)
getDirectoryPath
in interface RemoteFileServiceModelInterface
path
- the fully qualified path
public void setFilterValues(java.util.List filterValues)
setFilterValues
in interface RemoteFileServiceModelInterface
filterValues
- a List of String items with the valuesgetFilterValues()
public java.util.List getFilterValues()
getFilterValues
in interface RemoteFileServiceModelInterface
setFilterValues(List)
public void setRepository(com.sas.services.information.RepositoryInterface repository)
repository
- the information service repositorygetRepository()
public com.sas.services.information.RepositoryInterface getRepository()
setRepository(RepositoryInterface)
public java.util.List getRepositoryList()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |