OSID Logo
OSID Specifications
filing package
Version 3.1.0
Interfaceosid.filing.FileSearchSession
Implementsosid.filing.FileQuerySession
Used Byosid.filing.FilingManager
osid.filing.FilingProxyManager
Description

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.

  • federated directory view: searches include entries in directories of which this directory is an ancestor
  • isolated directory view: searches are restricted this directory only
MethodgetFileSearch
Description

Gets a file search.

Returnosid.filing.FileSearch the file search
Compliancemandatory This method must be implemented.
MethodgetFileSearchOrder
Description

Gets a file search order. The FileSearchOrder is supplied to a FileSearch to specify the ordering of results.

Returnosid.filing.FileSearchOrder the file search order.
Compliancemandatory This method must be implemented.
MethodgetFilesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.filing.FileQueryfileQuery the file query
osid.filing.FileSearchfileSearch the file search
Returnosid.filing.FileSearchResults the file search results
ErrorsNULL_ARGUMENT fileQuery or fileSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED fileQuery or fileSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetFileQueryFromInspector
Description

Gets a file query from an inspector. The inspector is available from a FileSearchResults.

Parametersosid.filing.FileQueryInspectorfileQueryInspector a query inspector
Returnosid.filing.FileQuery the file query
ErrorsNULL_ARGUMENT fileQueryInspector is null
UNSUPPORTED fileQueryInspector is not of this service
Compliancemandatory This method must be implemented.