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

This session provides methods to retrieve OrderItem to Store mappings. A OrderItem 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

Like all OsidSessions, OrderItemStoreSessions are dedicated to single processing threads and a single authenticated user.

MethodcanLookupOrderItemStoreMappings
Description

Tests if this user can perform lookups of order item/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 must be implemented.
MethodusePlenaryStoreView
Description

A complete view of the OrderItem 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 must be implemented.
MethodgetOrderItemIdsByStore
Description

Gets the list of OrderItem Ids associated with a Store.

Parametersosid.id.IdstoreId Id of a Store.
Returnosid.id.IdList list of related order item 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.
MethodgetOrderItemsByStore
Description

Gets the list of OrderItems associated with a Store.

Parametersosid.id.IdstoreId Id of a Store
Returnosid.ordering.OrderItemList list of related order items
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.
MethodgetOrderItemIdsByStores
Description

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

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

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

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

Gets the list of Store Ids mapped to a OrderItem.

Parametersosid.id.IdorderItemId Id of a OrderItem
Returnosid.id.IdList list of store Ids
ErrorsNOT_FOUND orderItemId is not found
NULL_ARGUMENT orderItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetStoresByOrderItem
Description

Gets the list of Store objects mapped to an OrderItem.

Parametersosid.id.IdorderItemId Id of a OrderItem
Returnosid.ordering.StoreList list of stores
ErrorsNOT_FOUND orderItemId is not found
NULL_ARGUMENT orderItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.