OSID Logo
OSID Specifications
resourcing rules package
Version 3.1.0
Interfaceosid.resourcing.rules.JobConstrainerSearchSession
Implementsosid.resourcing.rules.JobConstrainerQuerySession
Used Byosid.resourcing.rules.ResourcingRulesManager
osid.resourcing.rules.ResourcingRulesProxyManager
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.

Like all OsidSessions, JobConstrainerSearchSessions are dedicated to single processing threads and a single authenticated user.

MethodgetJobConstrainerSearch
Description

Gets a job constrainer search.

Returnosid.resourcing.rules.JobConstrainerSearch the job constrainer search
Compliancemandatory This 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.JobConstrainerSearchOrder the job constrainer search order
Compliancemandatory This method must be implemented.
MethodgetJobConstrainersBySearch
Description

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

Parametersosid.resourcing.rules.JobConstrainerQueryjobConstrainerQuery the job constrainer query
osid.resourcing.rules.JobConstrainerSearchjobConstrainerSearch the job constrainer search
Returnosid.resourcing.rules.JobConstrainerSearchResults the returned search results
ErrorsNULL_ARGUMENT jobConstrainerQuery or jobConstrainerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED jobConstrainerQuery or jobConstrainerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetJobConstrainerQueryFromInspector
Description

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

Parametersosid.resourcing.rules.JobConstrainerQueryInspectorjobConstrainerQueryInspector a job constrainer query inspector
Returnosid.resourcing.rules.JobConstrainerQuery the job constrainer query
ErrorsNULL_ARGUMENT jobConstrainerQueryInspector is null
UNSUPPORTED jobConstrainerQueryInspector is not of this service
Compliancemandatory This method must be implemented.