OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.ItemQuery
Implementsosid.OsidRelationshipQuery
Used Byosid.ordering.OrderQuery
osid.ordering.PriceQuery
osid.ordering.ProductQuery
Description

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

MethodmatchOrderId
Description

Sets the order Id for this query to match orders assigned to items.

Parametersosid.id.IdorderId an order Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT orderId is null
Compliancemandatory This method must be implemented.
MethodclearOrderIdTerms
Description

Clears the order Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsOrderQuery
Description

Tests if an order query is available.

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

Gets the query for an item.

Returnosid.ordering.OrderQuery the order query
ErrorsUNIMPLEMENTED supportsOrderQuery() is false
Complianceoptional This method must be implemented if supportsOrderQuery() is true.
MethodclearOrderTerms
Description

Clears the order terms.

Compliancemandatory This method must be implemented.
MethodmatchDerived
Description

Matches items that are derived.

Parametersbooleanmatch true to match derived items, false to match selected items
Compliancemandatory This method must be implemented.
MethodclearDerivedTerms
Description

Clears the derived terms.

Compliancemandatory This method must be implemented.
MethodmatchProductId
Description

Sets the product Id for this query.

Parametersosid.id.IdproductId a product Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT productId is null
Compliancemandatory This method must be implemented.
MethodclearProductIdTerms
Description

Clears the product Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsProductQuery
Description

Tests if a product query is available.

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

Gets the query for a product.

Returnosid.ordering.ProductQuery the product query
ErrorsUNIMPLEMENTED supportsProductQuery() is false
Complianceoptional This method must be implemented if supportsProductQuery() is true.
MethodclearProductTerms
Description

Clears the product terms.

Compliancemandatory This method must be implemented.
MethodmatchQuantity
Description

Matches quantities between the given range inclusive.

Parameterscardinallow low range
cardinalhigh high 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.
MethodclearQuantityTerms
Description

Clears the quantity terms.

Compliancemandatory This method must be implemented.
MethodmatchCost
Description

Matches costs between the given range inclusive.

Parametersosid.financials.Currencylow low range
osid.financials.Currencyhigh high range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT low is greater than high
NULL_ARGUMENT low or high is null
Compliancemandatory This method must be implemented.
MethodclearCostTerms
Description

Clears the cost terms.

Compliancemandatory This method must be implemented.
MethodmatchMinimumCost
Description

Matches minimum costs between the given range inclusive.

Parametersosid.financials.Currencycost cost
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT cost is null
Compliancemandatory This method must be implemented.
MethodclearMinimumCostTerms
Description

Clears the minimum cost terms.

Compliancemandatory This method must be implemented.
MethodmatchStoreId
Description

Sets the item Id for this query to match orders assigned to stores.

Parametersosid.id.IdstoreId a 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 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 query. 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 terms.

Compliancemandatory This method must be implemented.
MethodgetItemQueryRecord
Description

Gets the item query record corresponding to the given Item record Type.Multiple record retrievals produce a nested boolean OR term.

Parametersosid.type.TypeitemRecordType an item record type
Returnosid.ordering.records.ItemQueryRecord the item query record
ErrorsNULL_ARGUMENT itemRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(itemRecordType) is false
Compliancemandatory This method must be implemented.