public interface FileSearchSession extends FileQuerySession
This session provides methods for searching among files and directories
objects. The search query is constructed using a FileQuery.
getFilesByQuery()
is the basic search method and
returns a list of Files.
A more advanced search may be
performed with getFilesBySearch().
It accepts a
FileSearch
in addition to the query for the purpose of specifying
additional options affecting the entire search, such as ordering.
getFilesBySearch()
returns an FileSearchResults
that can be used to access the resulting FileList
or be
used to perform a search within the result set through FileSearch.
This session defines views that offer differing behaviors when retrieving multiple objects.
Modifier and Type | Method and Description |
---|---|
FileQuery |
getFileQueryFromInspector(FileQueryInspector fileQueryInspector)
Gets a file query from an inspector.
|
FileSearchResults |
getFilesBySearch(FileQuery fileQuery,
FileSearch fileSearch)
Gets the search results matching the given search query using the
given search.
|
FileSearch |
getFileSearch()
Gets a file search.
|
FileSearchOrder |
getFileSearchOrder()
Gets a file search order.
|
canSearchFiles, getDirectory, getDirectoryId, getFileQuery, getFilesByQuery, useFederatedDirectoryView, useIsolatedDirectoryView
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
FileSearch getFileSearch()
mandatory
- This method must be implemented. FileSearchOrder getFileSearchOrder()
FileSearchOrder
is
supplied to a FileSearch
to specify the ordering of
results.mandatory
- This method must be implemented. FileSearchResults getFilesBySearch(FileQuery fileQuery, FileSearch fileSearch) throws OperationFailedException, PermissionDeniedException
fileQuery
- the file queryfileSearch
- the file searchNullArgumentException
- fileQuery
or
fileSearch
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- fileQuery
or
fileSearch
is not of this servicemandatory
- This method must be implemented. FileQuery getFileQueryFromInspector(FileQueryInspector fileQueryInspector)
FileSearchResults.
fileQueryInspector
- a query inspectorNullArgumentException
- fileQueryInspector
is null
UnsupportedException
- fileQueryInspector
is not of this servicemandatory
- This method must be implemented.