OSID Logo
OSID Specifications
ordering package
Version 3.1.0
Interfaceosid.ordering.OrderStoreSession
Implementsosid.OsidSession
Used Byosid.ordering.OrderingManager
osid.ordering.OrderingProxyManager
Description

This session provides methods to retrieve Order to Store mappings. An Order may appear in multiple Stores. Each Store may have its own authorizations governing who is allowed to look at it.

This lookup session defines several views:

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete result set or is an error condition
MethodcanLookupOrderStoreMappings
Description

Tests if this user can perform lookups of order/store mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known lookup methods in this session will result in a PERMISSION_DENIED. This is intendedas a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if looking up mappings is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeStoreView
Description

The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

Compliancemandatory This method is must be implemented.
MethodusePlenaryStoreView
Description

A complete view of the Order and Store returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

Compliancemandatory This method is must be implemented.
MethodgetOrderIdsByStore
Description

Gets the list of order Ids associated with a Store.

Parametersosid.id.IdstoreId Id of a Store.
Returnosid.id.IdList list of related order Ids
ErrorsNOT_FOUND storeId is not found
NULL_ARGUMENT storeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrdersByStore
Description

Gets the list of Orders associated with a Store.

Parametersosid.id.IdstoreId Id of a Store
Returnosid.ordering.OrderList list of related orders
ErrorsNOT_FOUND storeId is not found
NULL_ARGUMENT storeId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrderIdsByStores
Description

Gets the list of Order Ids corresponding to a list of Store objects.

Parametersosid.id.IdListstoreIds list of store Ids
Returnosid.id.IdList list of order Ids
ErrorsNULL_ARGUMENT storeIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrdersByStores
Description

Gets the list of Orders corresponding to a list of Stores.

Parametersosid.id.IdListstoreIds list of store Ids
Returnosid.ordering.OrderList list of orders
ErrorsNULL_ARGUMENT storeIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStoreIdsByOrder
Description

Gets the list of Store Ids mapped to an Order.

Parametersosid.id.IdorderId Id of an Order
Returnosid.id.IdList list of store Ids
ErrorsNOT_FOUND orderId is not found
NULL_ARGUMENT orderId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStoresByOrder
Description

Gets the list of Store objects mapped to an Order.

Parametersosid.id.IdorderId Id of an Order
Returnosid.ordering.StoreList list of store Ids
ErrorsNOT_FOUND orderId is not found
NULL_ARGUMENT orderId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.