OSID Logo
OSID Specifications
ordering rules package
Version 3.1.0
Interfaceosid.ordering.rules.PriceEnablerQuery
Implementsosid.OsidEnablerQuery
Used Byosid.ordering.rules.PriceEnablerQuerySession
osid.ordering.rules.PriceEnablerSearchSession
osid.ordering.rules.PriceEnablerSmartStoreSession
Description

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

MethodmatchRuledPriceId
Description

Matches enablers mapped to the price.

Parametersosid.id.IdpriceId the price Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT priceId is null
Compliancemandatory This method must be implemented.
MethodclearRuledPriceIdTerms
Description

Clears the price Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsRuledPriceQuery
Description

Tests if a PriceQuery is available.

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

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

Returnosid.ordering.PriceQuery the price query
ErrorsUNIMPLEMENTED supportsRuledPriceQuery() is false
Complianceoptional This method must be implemented if supportsRuledPriceQuery() is true.
MethodmatchAnyRuledPrice
Description

Matches enablers mapped to any price.

Parametersbooleanmatch true for enablers mapped to any price, false to match enablers mapped to no price
Compliancemandatory This method must be implemented.
MethodclearRuledPriceTerms
Description

Clears the price query terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumQuantity
Description

Matches the minimum quantity between the given range inclusive.

Parameterscardinallow start of range
cardinalhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodclearMinimumQuantityTerms
Description

Clears the minimum quantity terms.

Compliancemandatory This method must be implemented.
MethodmatchMaximumQuantity
Description

Matches the maximum quantity between the given range inclusive.

Parameterscardinallow start of range
cardinalhigh end of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
Compliancemandatory This method must be implemented.
MethodclearMaximumQuantityTerms
Description

Clears the maximum quantity terms.

Compliancemandatory This method must be implemented.
MethodmatchStoreId
Description

Matches enablers mapped to the store.

Parametersosid.id.IdstoreId the store Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT storeId is null
Compliancemandatory This method must be implemented.
MethodclearStoreIdTerms
Description

Clears the store Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsStoreQuery
Description

Tests if a StoreQuery is available.

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

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

Returnosid.ordering.StoreQuery the store query
ErrorsUNIMPLEMENTED supportsStoreQuery() is false
Complianceoptional This method must be implemented if supportsStoreQuery() is true.
MethodclearStoreTerms
Description

Clears the store query terms.

Compliancemandatory This method must be implemented.
MethodgetPriceEnablerQueryRecord
Description

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

Parametersosid.type.TypepriceEnablerRecordType a price enabler record type
Returnosid.ordering.rules.records.PriceEnablerQueryRecord the price enabler query record
ErrorsNULL_ARGUMENT priceEnablerRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(priceEnablerRecordType) is false
Compliancemandatory This method must be implemented.