OSID Logo
OSID Specifications
resourcing rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.resourcing.rules.AvailabilityEnablerQuery
Implementsosid.OsidEnablerQuery
Description

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

MethodmatchRuledAvailabilityId
Description

Matches mapped to an availability.

Parametersosid.id.IdavailabilityIdthe availability Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT availabilityId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledAvailabilityIdTerms
Description

Clears the availability Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledAvailabilityQuery
Description

Tests if an AvailabilityQuery is available.

Returnboolean true if an availability query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledAvailabilityQuery
Description

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

Returnosid.resourcing.AvailabilityQuerythe availability query
ErrorsUNIMPLEMENTED supportsRuledAvailabilityQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledAvailabilityQuery() is true.
MethodmatchAnyRuledAvailability
Description

Matches mapped to any availability.

Parametersbooleanmatch true for mapped to any availability, false to match mapped to no availabilities
CompliancemandatoryThis method must be implemented.
MethodclearRuledAvailabilityTerms
Description

Clears the availability query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchFoundryId
Description

Matches mapped to the foundry.

Parametersosid.id.IdfoundryIdthe foundry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT foundryId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsFoundryQuery() is false
ComplianceoptionalThis method must be implemented if supportsFoundryQuery() is true.
MethodclearFoundryTerms
Description

Clears the foundry query terms.

CompliancemandatoryThis method must be implemented.
MethodgetAvailabilityEnablerQueryRecord
Description

Gets the availability enabler query record corresponding to the given AvailabilityEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypeavailabilityEnablerRecordTypean availability enabler record type
Returnosid.resourcing.rules.records.AvailabilityEnablerQueryRecordthe availability enabler query record
ErrorsNULL_ARGUMENT availabilityEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(availabilityEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.