OSID Logo
OSID Specifications
workflow package
Version 3.0.0
Interfaceosid.workflow.WorkSearchSession
Implementsosid.workflow.WorkQuerySession
Used Byosid.workflow.WorkflowManager
osid.workflow.WorkflowProxyManager
Description

This session provides methods for searching among Works . The search query is constructed using the WorkQuery .

getWorksByQuery() is the basic search method and returns a list of Works . A more advanced search may be performed with getWorksBySearch() . It accepts a WorkSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getWorksBySearch() returns a WorkSearchResults that can be used to access the resulting WorkList or be used to perform a search within the result set through WorkSearch .

This session defines views that offer differing behaviors for searching.

  • federated office view: searches include works in offices of which this office is an ancestor in the office hierarchy
  • isolated office view: searches are restricted to works in this office

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

MethodgetWorkSearch
Description

Gets a work search.

Returnosid.workflow.WorkSearchthe work search
CompliancemandatoryThis method must be implemented.
MethodgetWorkSearchOrder
Description

Gets a work search order. The WorkSearchOrder is supplied to a WorkSearch to specify the ordering of results.

Returnosid.workflow.WorkSearchOrderthe work search order
CompliancemandatoryThis method must be implemented.
MethodgetWorksBySearch
Description

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

Parametersosid.workflow.WorkQueryworkQuerythe work query
osid.workflow.WorkSearchworkSearchthe work search
Returnosid.workflow.WorkSearchResultsthe work search results
ErrorsNULL_ARGUMENTworkQuery or workSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDworkQuery or workSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetWorkQueryFromInspector
Description

Gets a work query from an inspector. The inspector is available from a WorkSearchResults .

Parametersosid.workflow.WorkQueryInspectorworkQueryInspectora work query inspector
Returnosid.workflow.WorkQuerythe work query
ErrorsNULL_ARGUMENTworkQueryInspector is null
UNSUPPORTEDworkQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.