com.sas.swing.models.remotefileselector.ifileservice
Class IFileServiceSearchModel

com.sas.swing.models.remotefileselector.ifileservice.IFileServiceSearchModel
All Implemented Interfaces:
RemoteFileSearchModelInterface, RemoteFileServiceModelInterface, WorkspacePropertyInterface

public class IFileServiceSearchModel
implements RemoteFileSearchModelInterface


Field Summary
 
Fields inherited from class com.sas.swing.models.remotefileselector.ifileservice.IFileServiceModel
MVS_HFS_FILESYSTEM, MVS_OS_FILESYSTEM, RB_KEY
 
Constructor Summary
IFileServiceSearchModel(com.sas.iom.SAS.IWorkspace workspace)
           
 
Method Summary
 int getFilterMatchType()
          Returns the currently set override of the desired search criteria.
 void setDateRange(java.util.Date startDate, java.util.Date endDate)
          Sets a date range to be used in the search.
 void setFilterMatchType(int filterMatch)
          Sets whether to override the type of desired search criteria.
 void setRecursive(boolean recursive)
          Sets whether to make allow subfolders to be recursively searched.
 void setSearchAttributes(java.util.Map searchAttributes)
          Sets all of the search attributes with one method call.
 void setSearchContext(java.lang.String searchContext)
          Sets the context for searching.
 void setSearchText(java.lang.String searchText)
          Sets the text string to search.
 void setStartingLocation(java.lang.String startingLocation)
          Sets the file system path location where the search starts.
 void startSearch(RemoteFileServerModelInterface model, BaseActionProvider actionProvider)
          Runs when the search is initiated.
 void stopSearch()
          A method used to stop the search.
 
Methods inherited from class com.sas.swing.models.remotefileselector.ifileservice.IFileServiceModel
addPropertyChangeListener, combineDirectoryPathAndFileName, getDirectoryPath, getFiles, getFilterValues, getFullyQualifiedPath, getTopLevelName, getWorkspace, removePropertyChangeListener, setFilterValues, setWorkspace, splitDirectoryPathAndFileName
 
Methods inherited from interface com.sas.swing.models.remotefileselector.RemoteFileServiceModelInterface
addPropertyChangeListener, combineDirectoryPathAndFileName, getDirectoryPath, getFiles, getFilterValues, getFullyQualifiedPath, getTopLevelName, removePropertyChangeListener, setFilterValues, splitDirectoryPathAndFileName
 

Constructor Detail

IFileServiceSearchModel

public IFileServiceSearchModel(com.sas.iom.SAS.IWorkspace workspace)
Method Detail

startSearch

public void startSearch(RemoteFileServerModelInterface model,
                        BaseActionProvider actionProvider)
Description copied from interface: RemoteFileSearchModelInterface
Runs when the search is initiated.

Specified by:
startSearch in interface RemoteFileSearchModelInterface
Parameters:
model - the model used to hold the search results
actionProvider - the action provider

stopSearch

public void stopSearch()
Description copied from interface: RemoteFileSearchModelInterface
A method used to stop the search.

Specified by:
stopSearch in interface RemoteFileSearchModelInterface

setSearchAttributes

public void setSearchAttributes(java.util.Map searchAttributes)
Description copied from interface: RemoteFileSearchModelInterface
Sets all of the search attributes with one method call.

Specified by:
setSearchAttributes in interface RemoteFileSearchModelInterface
Parameters:
searchAttributes - the search attributes

setSearchContext

public void setSearchContext(java.lang.String searchContext)
Description copied from interface: RemoteFileSearchModelInterface
Sets the context for searching. Corresponds to the question "what column?".

Specified by:
setSearchContext in interface RemoteFileSearchModelInterface
Parameters:
searchContext - the search context

setSearchText

public void setSearchText(java.lang.String searchText)
Description copied from interface: RemoteFileSearchModelInterface
Sets the text string to search. The default search does a contains on the text string, so specifying a wildcard string *text* is not necessary.

Specified by:
setSearchText in interface RemoteFileSearchModelInterface
Parameters:
searchText - the text to search

setStartingLocation

public void setStartingLocation(java.lang.String startingLocation)
Description copied from interface: RemoteFileSearchModelInterface
Sets the file system path location where the search starts.

Specified by:
setStartingLocation in interface RemoteFileSearchModelInterface
Parameters:
startingLocation - the file system path

setRecursive

public void setRecursive(boolean recursive)
Description copied from interface: RemoteFileSearchModelInterface
Sets whether to make allow subfolders to be recursively searched.

Specified by:
setRecursive in interface RemoteFileSearchModelInterface
Parameters:
recursive - specifies whether to search subfolders

setDateRange

public void setDateRange(java.util.Date startDate,
                         java.util.Date endDate)
Description copied from interface: RemoteFileSearchModelInterface
Sets a date range to be used in the search.

Specified by:
setDateRange in interface RemoteFileSearchModelInterface
Parameters:
startDate - the beginning date (inclusive)
endDate - the ending date (inclusive)

setFilterMatchType

public void setFilterMatchType(int filterMatch)
Description copied from interface: RemoteFileSearchModelInterface
Sets whether to override the type of desired search criteria. This will override any setting specified through wildcards in the search text.

Specified by:
setFilterMatchType in interface RemoteFileSearchModelInterface
Parameters:
filterMatch - the filter match type
See Also:
RemoteFileSearchModelInterface.getFilterMatchType(), FilterComponent

getFilterMatchType

public int getFilterMatchType()
Description copied from interface: RemoteFileSearchModelInterface
Returns the currently set override of the desired search criteria.

Specified by:
getFilterMatchType in interface RemoteFileSearchModelInterface
Returns:
the desired search criteria
See Also:
RemoteFileSearchModelInterface.setFilterMatchType(int)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.