|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.swing.models.remotefileselector.informationservices.InformationServicesSearchModel
public class InformationServicesSearchModel
InformationServicesSearchModel class probivides the additional functionality to perform searches on the file system data.
| Field Summary | |
|---|---|
static int |
CREATEDDATE
used to specify the created date when searching on datetime values |
static int |
MODIFIEDDATE
used to specify the modified date when searching on datetime values |
static java.lang.String |
RB_KEY
a resource attribute |
| Fields inherited from class com.sas.swing.models.remotefileselector.informationservices.InformationServicesModel |
|---|
actionProvider, allFileList, currentPath, endDate, filterComp, filteredFolder, filterValues, GMT, INFOMAP, remoteFileServerModel, REPORTS, repository, searchFilter, startDate, startFolder, STPROC |
| Constructor Summary | |
|---|---|
InformationServicesSearchModel(com.sas.services.information.RepositoryInterface repository)
Constructor that allows setting of the repository to be searched. |
|
InformationServicesSearchModel(com.sas.services.user.UserContextInterface user)
|
|
| Method Summary | |
|---|---|
int |
getDateSearchType()
|
int |
getFilterMatchType()
Returns the currently set filter match type. |
boolean |
getRecursive()
Returns the current recursive search setting. |
void |
setDateRange(java.util.Date startDate,
java.util.Date endDate)
Allows setting of a date range used to search for items by date. |
void |
setDateSearchType(int dateType)
Allows configuration of created vs. modified dates used when searching for datetime values |
void |
setFilterMatchType(int filterMatch)
Allows setting of a constant value for the filterRelation value. |
void |
setRecursive(boolean recursive)
Specifies whether to recursively search file system sub folders for results that match the other search criteria. |
void |
setSearchAttributes(java.util.Map searchAttributes)
Allows setting of all search attributes with one call. |
void |
setSearchContext(java.lang.String context)
Specifies the attribute containing the values to be searched. |
void |
setSearchText(java.lang.String text)
Sets the text to be searched. |
void |
setStartingLocation(java.lang.String startingPath)
Sets the file system path used as a starting location for the search. |
void |
startSearch(RemoteFileServerModelInterface model,
BaseActionProvider actionProvider)
Starts the search process once the search criteria have been set. |
void |
stopSearch()
Allows stopping of the search. |
| Methods inherited from class com.sas.swing.models.remotefileselector.informationservices.InformationServicesModel |
|---|
addPropertyChangeListener, combineDirectoryPathAndFileName, filterData, getDirectoryPath, getFiles, getFilterValues, getFolderInterfaceFiles, getFullyQualifiedPath, getRepository, getRepositoryList, getTopLevelName, removePropertyChangeListener, setFilterValues, setRepository, splitDirectoryPathAndFileName |
| Methods inherited from interface com.sas.swing.models.remotefileselector.RemoteFileServiceModelInterface |
|---|
addPropertyChangeListener, combineDirectoryPathAndFileName, getDirectoryPath, getFiles, getFilterValues, getFullyQualifiedPath, getTopLevelName, removePropertyChangeListener, setFilterValues, splitDirectoryPathAndFileName |
| Field Detail |
|---|
public static final java.lang.String RB_KEY
public static final int MODIFIEDDATE
public static final int CREATEDDATE
| Constructor Detail |
|---|
public InformationServicesSearchModel(com.sas.services.information.RepositoryInterface repository)
repository - the repository to be searchedpublic InformationServicesSearchModel(com.sas.services.user.UserContextInterface user)
user - | Method Detail |
|---|
public void startSearch(RemoteFileServerModelInterface model,
BaseActionProvider actionProvider)
startSearch in interface RemoteFileSearchModelInterfacemodel - the remote file selector data model that will update when search is finishedactionProvider - the action provider framework objectpublic void stopSearch()
stopSearch in interface RemoteFileSearchModelInterfacepublic void setSearchText(java.lang.String text)
setSearchText in interface RemoteFileSearchModelInterfacetext - the text to search forpublic void setSearchContext(java.lang.String context)
setSearchContext in interface RemoteFileSearchModelInterfacecontext - the attribute namepublic void setStartingLocation(java.lang.String startingPath)
setStartingLocation in interface RemoteFileSearchModelInterfacestartingPath - a file system pathpublic void setRecursive(boolean recursive)
setRecursive in interface RemoteFileSearchModelInterfacerecursive - true = yes search sub folders, false = no search just the specified foldergetRecursive()public boolean getRecursive()
setRecursive(boolean)
public void setDateRange(java.util.Date startDate,
java.util.Date endDate)
setDateRange in interface RemoteFileSearchModelInterfacestartDate - the beginning of the range (inclusive)endDate - the end of the range (inclusive)public void setDateSearchType(int dateType)
dateType - the date typepublic int getDateSearchType()
public void setFilterMatchType(int filterMatch)
setFilterMatchType in interface RemoteFileSearchModelInterfacefilterMatch - the value from FilterComponent.EQUALS, CONTAINS, etc.RemoteFileSearchModelInterface.getFilterMatchType(),
FilterComponentpublic int getFilterMatchType()
getFilterMatchType in interface RemoteFileSearchModelInterfacesetFilterMatchType(int)public void setSearchAttributes(java.util.Map searchAttributes)
setSearchAttributes in interface RemoteFileSearchModelInterfacesearchAttributes - a map of the search attributes
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||