OSID Logo
OSID Specifications
resourcing package
Version 3.1.0
Interfaceosid.resourcing.JobSearchSession
Implementsosid.resourcing.JobQuerySession
Used Byosid.resourcing.ResourcingManager
osid.resourcing.ResourcingProxyManager
Description

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

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

This session defines views that offer differing behaviors for searching.

  • federated foundry view: searches include jobs in foundries of which this foundry is an ancestor in the foundry hierarchy
  • isolated foundry view: searches are restricted to jobs in this foundry

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

MethodgetJobSearch
Description

Gets a job search.

Returnosid.resourcing.JobSearch the job search
Compliancemandatory This method must be implemented.
MethodgetJobSearchOrder
Description

Gets a job search order. The JobSearchOrder is supplied to a JobSearch to specify the ordering of results.

Returnosid.resourcing.JobSearchOrder the job search order
Compliancemandatory This method must be implemented.
MethodgetJobsBySearch
Description

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

Parametersosid.resourcing.JobQueryjobQuery the job query
osid.resourcing.JobSearchjobSearch the job search
Returnosid.resourcing.JobSearchResults the returned search results
ErrorsNULL_ARGUMENT jobQuery or jobSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED jobQuery or jobSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetJobQueryFromInspector
Description

Gets a job query from an inspector. The inspector is available from a JobSearchResults.

Parametersosid.resourcing.JobQueryInspectorjobQueryInspector a job query inspector
Returnosid.resourcing.JobQuery the job query
ErrorsNULL_ARGUMENT jobQueryInspector is null
UNSUPPORTED jobQueryInspector is not of this service
Compliancemandatory This method must be implemented.