OSID Logo
OSID Specifications
resourcing rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resourcing.rules.JobConstrainerSearchSession
Implementsosid.resourcing.rules.JobConstrainerQuerySession
Description

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

getJobConstrainersByQuery() is the basic search method and returns a list of JobConstrainers. A more advanced search may be performed with getJobConstrainersBySearch(). It accepts a JobConstrainerSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as resourcing. getJobConstrainersBySearch() returns a JobConstrainerSearchResults that can be used to access the resulting JobConstrainerList or be used to perform a search within the result set through JobConstrainerSearch.

This session defines views that offer differing behaviors for searching.

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

JobConstrainers may have a job constrainer query record indicated by their respective record types. The job constrainer query record is accessed via the JobConstrainerQuery.

MethodgetJobConstrainerSearch
Description

Gets a job constrainer search.

Returnosid.resourcing.rules.JobConstrainerSearchthe job constrainer search
CompliancemandatoryThis method must be implemented.
MethodgetJobConstrainerSearchOrder
Description

Gets a job constrainer search order. The JobConstrainerSearchOrder is supplied to a JobConstrainerSearch to specify the ordering of results.

Returnosid.resourcing.rules.JobConstrainerSearchOrderthe job constrainer search order
CompliancemandatoryThis method must be implemented.
MethodgetJobConstrainersBySearch
Description

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

Parametersosid.resourcing.rules.JobConstrainerQueryjobConstrainerQuerythe job constrainer query
osid.resourcing.rules.JobConstrainerSearchjobConstrainerSearchthe job constrainer search
Returnosid.resourcing.rules.JobConstrainerSearchResultsthe returned search results
ErrorsNULL_ARGUMENT jobConstrainerQuery or jobConstrainerSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED jobConstrainerQuery or jobConstrainerSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetJobConstrainerQueryFromInspector
Description

Gets a job constrainer query from an inspector. The inspector is available from a JobConstrainerSearchResults.

Parametersosid.resourcing.rules.JobConstrainerQueryInspectorjobConstrainerQueryInspectora job constrainer query inspector
Returnosid.resourcing.rules.JobConstrainerQuerythe job constrainer query
ErrorsNULL_ARGUMENT jobConstrainerQueryInspector is null
UNSUPPORTED jobConstrainerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.