OSID Logo
OSID Specifications
offering rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.offering.rules.CanonicalUnitEnablerQuery
Implementsosid.OsidEnablerQuery
Description

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

MethodmatchRuledOfferingConstrainerId
Description

Matches enablers mapped to the offering constrainer.

Parametersosid.id.IdofferingConstrainerIdthe offering constrainer Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT offeringConstrainerId is null
CompliancemandatoryThis method must be implemented.
MethodclearRuledOfferingConstrainerIdTerms
Description

Clears the offering constrainer Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRuledOfferingConstrainerQuery
Description

Tests if an OfferingConstrainerQuery is available.

Returnboolean true if an offering constrainer query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRuledOfferingConstrainerQuery
Description

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

Returnosid.offering.rules.OfferingConstrainerQuerythe offering constrainer query
ErrorsUNIMPLEMENTED supportsRuledOfferingConstrainerQuery() is false
ComplianceoptionalThis method must be implemented if supportsRuledOfferingConstrainerQuery() is true.
MethodmatchAnyRuledOfferingConstrainer
Description

Matches enablers mapped to any offering constrainer.

Parametersbooleanmatch true for enablers mapped to any offering constrainer, false to match enablers mapped to no offering constrainers
CompliancemandatoryThis method must be implemented.
MethodclearRuledOfferingConstrainerTerms
Description

Clears the offering constrainer query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchCatalogueId
Description

Matches enablers mapped to the catalogue.

Parametersosid.id.IdcatalogueIdthe catalogue Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT catalogueId is null
CompliancemandatoryThis method must be implemented.
MethodclearCatalogueIdTerms
Description

Clears the catalogue Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsCatalogueQuery
Description

Tests if a CatalogueQuery is available.

Returnboolean true if a catalogue query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetCatalogueQuery
Description

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

Returnosid.offering.CatalogueQuerythe catalogue query
ErrorsUNIMPLEMENTED supportsCatalogueQuery() is false
ComplianceoptionalThis method must be implemented if supportsCatalogueQuery() is true.
MethodclearCatalogueTerms
Description

Clears the catalogue query terms.

CompliancemandatoryThis method must be implemented.
MethodgetCanonicalUnitEnablerQueryRecord
Description

Gets the canonical unit enabler query record corresponding to the given CanonicalUnitEnabler record Type. Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypecanonicalUnitEnablerRecordTypea canonical unit enabler record type
Returnosid.offering.rules.records.CanonicalUnitEnablerQueryRecordthe canonical unit enabler query record
ErrorsNULL_ARGUMENT canonicalUnitEnablerRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(canonicalUnitEnablerRecordType) is false
CompliancemandatoryThis method must be implemented.