OSID Logo
OSID Specifications
resourcing rules package
Version 3.0.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.IdavailabilityIdthe availability Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTavailabilityId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsRuledAvailabilityQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledAvailabilityQuery() is true .
MethodmatchAnyRuledAvailability
Description

Matches mapped to any availability.

Parametersbooleanmatchtrue 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
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.
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_ARGUMENTavailabilityEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(availabilityEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.