com.sas.swing.models.remotefileselector2.informationservices
Class InformationServicesSearchModel

com.sas.swing.models.remotefileselector2.informationservices.InformationServicesSearchModel
All Implemented Interfaces:
BaseRemoteFileModelInterface, com.sas.swing.models.remotefileselector2.informationservices.IncludeSystemFoldersInterface, com.sas.swing.models.remotefileselector2.LocaleDataInterface, com.sas.swing.models.remotefileselector2.MutableFileFilterInterface, com.sas.swing.models.remotefileselector2.RemoteFileModelDirectoriesOnlyInterface, RemoteFileSearchModelInterface, java.io.Serializable, javax.swing.table.TableModel

public class InformationServicesSearchModel
implements RemoteFileSearchModelInterface

InformationServicesSearchModel class provides the additional functionality to perform searches on the file system data. Wild card searches with an "*" asterisk are supported. If text is specified and then an asterisk, then all items whose context starting text matches the specified text will be returned in the Search results. All other searches are contained searches. So if an asterisk is specified and then text any items whose context text contains the specified text will be returned in the Search results.

Since:
9.1.4
See Also:
Serialized Form

Field Summary
static java.lang.String CREATED_DATE
          used to specify the created date when searching on datetime values
static java.lang.String MODIFIED_DATE
          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.remotefileselector2.informationservices.BaseInformationServicesModel
allowNewFoldersInRootFolder, CHOOSE_REPORT_METADATA_TEMPLATE, FOLDER_TYPE, FOLDER_TYPE_AND_SLASH, folderLocalizedType, FOLDERTYPE_FOLDER, FOLDERTYPE_MYFOLDER, FOLDERTYPE_ROOTFOLDER, FOLDERTYPE_WEBDAVFOLDER, includeSystemFolders, isPathUrl, LOAD_ROOT_FOLDER_TEMPLATE, locations, locationsCurrentPathIndex, log, MY_FOLDER, myFolderLocationUrl, myFolderName, myFolderNode, navigatingRepository, PACKAGE, repository, repositoryForFilteringRootFolders, reposList, rootFolder, rootFolderInfo, rootFolderLocation, rootFolderName, rootLocations, SBIP, server, SLASH, SYSTEM_FOLDER_TYPE, typeDescriptor, userHomeFolder, userHomeFolderInfo, userHomeFolderName, webDavReposList, webDavReposNames
 
Fields inherited from class com.sas.swing.models.remotefileselector2.BaseRemoteFileServerModel
currentPath, directoriesOnly, filterValues, infoList, modelNeedsRefresh, readingFromCache, rootLocation, showDirectoriesOnly, spcs, tableEditable
 
Fields inherited from interface com.sas.swing.models.remotefileselector2.BaseRemoteFileModelInterface
AUTHOR_COLUMN, CREATED_DATE_COLUMN, DESCRIPTION_COLUMN, ENGINE_COLUMN, ENTITY_KEY_COLUMN, FILE_METADATA_COLUMN, IS_A_FOLDER_COLUMN, KEYWORDS_COLUMN, MODIFIED_DATE_COLUMN, NAME_COLUMN, PATH_COLUMN, SIZE_COLUMN, SPECIAL_TYPE_COLUMN, TYPE_COLUMN
 
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)
          Constructor that allows setting of a user context to be searched.
 
Method Summary
 int getFilterMatchType()
          Returns the currently set filter match type.
 boolean getRecursive()
          Returns whether the current search is recursive.
protected  com.sas.services.information.FilterInterface getSearchFilter()
           
 void loadFileInfo(RemoteFileSearchAttributes searchCriteria)
          Initiates the gathering of the file information for the search.
 void setFilterMatchType(int filterMatch)
          Allows setting of a constant value for the filterRelation value.
protected  void setSearchFilter(com.sas.services.information.FilterInterface searchFilter)
           
 
Methods inherited from class com.sas.swing.models.remotefileselector2.informationservices.BaseInformationServicesModel
combinePathAndFileName, createMetadataItems, createMetadataPackageItems, createRepositoryNodeMetadataItems, filterData, filterPackageData, getColumnCount, getColumnIndex, getCurrentFolder, getCurrentRepository, getDirectoryPath, getLocale, getRepository, getRepositoryList, getRepositoryRootLocation, getServerName, getUserContext, getValueAt, initialize, isUpwardPathRestricted, isValidURL, parseIntoFoldersAndLocations, setLocale, setRepository, setUserContext, splitPathAndFileName, updateLocations
 
Methods inherited from class com.sas.swing.models.remotefileselector2.BaseRemoteFileServerModel
addToPasteBuffer, cancelLoadFileInfo, clearPasteBuffer, getBasePath, getFileInfo, getLocation, getNodeAt, getPasteBuffer, getPasteBufferCommandType, getRowCount, isRefreshNeeded, isTableEditable, setPasteBufferCommandType, setRefreshNeeded, setTableEditable
 
Methods inherited from interface com.sas.swing.models.remotefileselector2.BaseRemoteFileModelInterface
addToPasteBuffer, cancelLoadFileInfo, clearPasteBuffer, getBasePath, getColumnIndex, getLocation, getNodeAt, getPasteBuffer, getPasteBufferCommandType, getServerName, isRefreshNeeded, isTableEditable, isUpwardPathRestricted, parseIntoFoldersAndLocations, setLocation, setPasteBufferCommandType, setRefreshNeeded, setTableEditable
 

Field Detail

RB_KEY

public static final java.lang.String RB_KEY
a resource attribute

See Also:
Constant Field Values

MODIFIED_DATE

public static final java.lang.String MODIFIED_DATE
used to specify the modified date when searching on datetime values

See Also:
Constant Field Values

CREATED_DATE

public static final java.lang.String CREATED_DATE
used to specify the created date when searching on datetime values

See Also:
Constant Field Values
Constructor Detail

InformationServicesSearchModel

public InformationServicesSearchModel(com.sas.services.information.RepositoryInterface repository)
Constructor that allows setting of the repository to be searched.

Parameters:
repository - the repository to be searched

InformationServicesSearchModel

public InformationServicesSearchModel(com.sas.services.user.UserContextInterface user)
Constructor that allows setting of a user context to be searched.

Parameters:
user - the UserContextInterface to be searched
Method Detail

loadFileInfo

public void loadFileInfo(RemoteFileSearchAttributes searchCriteria)
                  throws java.lang.IllegalArgumentException
Initiates the gathering of the file information for the search. All of the search attributes are set by specifying the searchCriteria parameter.

Specified by:
loadFileInfo in interface RemoteFileSearchModelInterface
Parameters:
searchCriteria - the search attributes
Throws:
java.lang.IllegalArgumentException

setSearchFilter

protected void setSearchFilter(com.sas.services.information.FilterInterface searchFilter)

getSearchFilter

protected com.sas.services.information.FilterInterface getSearchFilter()

setFilterMatchType

public void setFilterMatchType(int filterMatch)
Allows setting of a constant value for the filterRelation value. If not set then the filterRelation is based on the inclusion of asterix wildcards.

Parameters:
filterMatch - the value from FilterComponent.EQUALS, CONTAINS, etc.

getFilterMatchType

public int getFilterMatchType()
Returns the currently set filter match type.

Returns:
the filter type
See Also:
setFilterMatchType(int)

getRecursive

public boolean getRecursive()
Returns whether the current search is recursive.

Returns:
returns true if the search is recursive and false if it is not



Copyright © 2009 SAS Institute Inc. All Rights Reserved.