OSID Logo
OSID Specifications
resourcing rules package
Version 3.0.0
Interfaceosid.resourcing.rules.JobConstrainerQuery
Implementsosid.OsidConstrainerQuery
Used Byosid.resourcing.rules.JobConstrainerEnablerQuery
osid.resourcing.rules.JobConstrainerQuerySession
osid.resourcing.rules.JobConstrainerSearchSession
osid.resourcing.rules.JobConstrainerSmartFoundrySession
Description

This is the query for searching job constrainers. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

MethodmatchRuledJobId
Description

Matches mapped to a job.

Parametersosid.id.IdfoundryIdthe job Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTfoundryId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledJobIdTerms
Description

Clears the job Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledJobQuery
Description

Tests if an JobQuery is available.

Returnbooleantrue if a job query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledJobQuery
Description

Gets the query for a job. Multiple retrievals produce a nested OR term.

Returnosid.resourcing.JobQuerythe job query
ErrorsUNIMPLEMENTEDsupportsRuledJobQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledJobQuery() is true .
MethodmatchAnyRuledJob
Description

Matches mapped to any job.

Parametersbooleanmatchtrue for mapped to any job, false to match mapped to no jobs
CompliancemandatoryThis method must be implemented.
MethodclearRuledJobTerms
Description

Clears the job query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFoundryId
Description

Matches mapped to the foundry.

Parametersosid.id.IdfoundryIdthe foundry Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTfoundryId is null
CompliancemandatoryThis method must be implemented.
MethodclearFoundryIdTerms
Description

Clears the foundry Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsFoundryQuery
Description

Tests if a FoundryQuery is available.

Returnbooleantrue if a foundry query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetFoundryQuery
Description

Gets the query for a foundry. Multiple retrievals produce a nested OR term.

Returnosid.resourcing.FoundryQuerythe foundry query
ErrorsUNIMPLEMENTEDsupportsFoundryQuery() is false
ComplianceoptionalThis method must be implemented if supportsFoundryQuery() is true .
MethodclearFoundryTerms
Description

Clears the foundry query terms.

CompliancemandatoryThis method must be implemented.
MethodgetJobConstrainerQueryRecord
Description

Gets the job constrainer query record corresponding to the given JobConstrainer record Type . Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypejobConstrainerRecordTypea job constrainer record type
Returnosid.resourcing.rules.records.JobConstrainerQueryRecordthe job constrainer query record
ErrorsNULL_ARGUMENTjobConstrainerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(jobConstrainerRecordType) is false
CompliancemandatoryThis method must be implemented.