OSID Logo
OSID Specifications
resourcing rules package
Version 3.1.0
Interfaceosid.resourcing.rules.AvailabilityEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.resourcing.rules.AvailabilityEnablerQuerySession
osid.resourcing.rules.AvailabilityEnablerSearchSession
osid.resourcing.rules.AvailabilityEnablerSmartFoundrySession
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.IdavailabilityId the availability Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT availabilityId is null
Compliancemandatory This method must be implemented.
MethodclearRuledAvailabilityIdTerms
Description

Clears the availability Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledAvailabilityQuery
Description

Tests if an AvailabilityQuery is available.

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

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

Returnosid.resourcing.AvailabilityQuery the availability query
ErrorsUNIMPLEMENTED supportsRuledAvailabilityQuery() is false
Complianceoptional This 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
Compliancemandatory This method must be implemented.
MethodclearRuledAvailabilityTerms
Description

Clears the availability query terms.

Compliancemandatory This method must be implemented.
MethodmatchFoundryId
Description

Matches mapped to the foundry.

Parametersosid.id.IdfoundryId the foundry Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT foundryId is null
Compliancemandatory This method must be implemented.
MethodclearFoundryIdTerms
Description

Clears the foundry Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsFoundryQuery
Description

Tests if a FoundryQuery is available.

Returnboolean true if a foundry query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetFoundryQuery
Description

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

Returnosid.resourcing.FoundryQuery the foundry query
ErrorsUNIMPLEMENTED supportsFoundryQuery() is false
Complianceoptional This method must be implemented if supportsFoundryQuery() is true.
MethodclearFoundryTerms
Description

Clears the foundry query terms.

Compliancemandatory This 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.TypeavailabilityEnablerRecordType an availability enabler record type
Returnosid.resourcing.rules.records.AvailabilityEnablerQueryRecord the availability enabler query record
ErrorsNULL_ARGUMENT availabilityEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(availabilityEnablerRecordType) is false
Compliancemandatory This method must be implemented.