OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.StoreQuery
Implementsosid.OsidCatalogQuery
Used Byosid.ordering.ItemQuery
osid.ordering.OrderQuery
osid.ordering.PriceQuery
osid.ordering.PriceScheduleQuery
osid.ordering.ProductQuery
osid.ordering.StoreQuery
osid.ordering.StoreQuerySession
osid.ordering.StoreSearchSession
osid.ordering.rules.PriceEnablerQuery
Description

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

MethodmatchOrderId
Description

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

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 order.

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

Matches stores with any order.

Parametersbooleanmatch true to match stores with any order, false to match stores with no orders
Compliancemandatory This method must be implemented.
MethodclearOrderTerms
Description

Clears the order 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.
MethodmatchAnyProduct
Description

Matches stores with any product.

Parametersbooleanmatch true to match stores with any product, false to match stores with no products
Compliancemandatory This method must be implemented.
MethodclearProductTerms
Description

Clears the product terms.

Compliancemandatory This method must be implemented.
MethodmatchPriceScheduleId
Description

Sets the price schedule Id for this query.

Parametersosid.id.IdpriceScheduleId a price schedule Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT priceScheduleId is null
Compliancemandatory This method must be implemented.
MethodclearPriceScheduleIdTerms
Description

Clears the price schedule Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsPriceScheduleQuery
Description

Tests if a price schedule query is available.

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

Gets the query for a price schedule.

Returnosid.ordering.PriceScheduleQuery the price schedule query
ErrorsUNIMPLEMENTED supportsPriceScheduleQuery() is false
Complianceoptional This method must be implemented if supportsPriceScheduleQuery() is true.
MethodmatchAnyPriceSchedule
Description

Matches products with any price schedule.

Parametersbooleanmatch true to match products with any price schedule, false to match products with no price schedule
Compliancemandatory This method must be implemented.
MethodclearPriceScheduleTerms
Description

Clears the price schedule terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorStoreId
Description

Sets the store Id for this query to match stores that have the specified store as an ancestor.

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.
MethodclearAncestorStoreIdTerms
Description

Clears the ancestor store Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorStoreQuery
Description

Tests if a StoreQuery is available.

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

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

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

Matches stores with any ancestor.

Parametersbooleanmatch true to match stores with any ancestor, false to match root stores
Compliancemandatory This method must be implemented.
MethodclearAncestorStoreTerms
Description

Clears the ancestor store terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantStoreId
Description

Sets the store Id for this query to match stores that have the specified store as a descendant.

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.
MethodclearDescendantStoreIdTerms
Description

Clears the descendant store Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantStoreQuery
Description

Tests if a StoreQuery is available.

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

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

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

Matches stores with any descendant.

Parametersbooleanmatch true to match stores with any descendant, false to match leaf stores
Compliancemandatory This method must be implemented.
MethodclearDescendantStoreTerms
Description

Clears the descendant store terms.

Compliancemandatory This method must be implemented.
MethodgetStoreQueryRecord
Description

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

Parametersosid.type.TypestoreRecordType a store record type
Returnosid.ordering.records.StoreQueryRecord the store query record
ErrorsNULL_ARGUMENT storeRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(storeRecordType) is false
Compliancemandatory This method must be implemented.