OSID Logo
OSID Specifications
workflow package
Version 3.0.0
Release Candidate Preview
Interfaceosid.workflow.OfficeSearchSession
Implementsosid.workflow.OfficeQuerySession
Description

This session provides methods for searching among Office objects. The search query is constructed using the OfficeQuery.

getOfficesByQuery() is the basic search method and returns a list of Offices. A more advanced search may be performed with getOfficesBySearch(). It accepts an OfficeSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getOfficesBySearch() returns an OfficeSearchResults that can be used to access the resulting OfficeList or be used to perform a search within the result set through OfficeSearch.

Offices may have a query record indicated by their respective record types. The query record is accessed via the OfficeQuery.

MethodgetOfficeSearch
Description

Gets an office search.

Returnosid.workflow.OfficeSearchthe office search
CompliancemandatoryThis method must be implemented.
MethodgetOfficeSearchOrder
Description

Gets an office search order. The OfficeSearchOrder is supplied to an OfficeSearch to specify the ordering of results.

Returnosid.workflow.OfficeSearchOrderthe office search order
CompliancemandatoryThis method must be implemented.
MethodgetOfficesBySearch
Description

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

Parametersosid.workflow.OfficeQueryofficeQuerythe office query
osid.workflow.OfficeSearchofficeSearchthe office search
Returnosid.workflow.OfficeSearchResultsthe returned search results
ErrorsNULL_ARGUMENT officeQuery or officeSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED officeQuery or officeSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetOfficeQueryFromInspector
Description

Gets an office query from an inspector. The inspector is available from an OfficeSearchResults.

Parametersosid.workflow.OfficeQueryInspectorofficeQueryInspectoran office query inspector
Returnosid.workflow.OfficeQuerythe office query
ErrorsNULL_ARGUMENT officeQueryInspector is null
UNSUPPORTED officeQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.