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

This session provides methods for retrieving OrderItem objects.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • isolated store view: All order methods in this session operate, retrieve and pertain to order items defined explicitly in the current store. Using an isolated view is useful for managing order items with the OrderItemAdminSession.
  • federated store view: All order item lookup methods in this session operate, retrieve and pertain to all order items defined in this store and any other stores implicitly available in this store through store inheritence.

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

MethodgetStoreId
Description

Gets the Store Id associated with this session.

Returnosid.id.Id the Store Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetStore
Description

Gets the Store associated with this session.

Returnosid.ordering.Store the store
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanLookupOrderItems
Description

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

Returnboolean false if lookup methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseComparativeOrderItemView
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.
MethodusePlenaryOrderItemView
Description

A complete view of the OrderItem 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.
MethoduseFederatedStoreView
Description

Federates the view for methods in this session. A federated view will include order items in stores which are children of this store in the store hierarchy.

Compliancemandatory This method must be implemented.
MethoduseIsolatedStoreView
Description

Isolates the view for methods in this session. An isolated view restricts retrievals to this store only.

Compliancemandatory This method must be implemented.
MethodgetOrderItem
Description

Gets the OrderItem specified by its Id. In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned OrderItem may have a different Id than requested, such as the case where a duplicate Id was assigned to an OrderItem and retained for compatibility.

Parametersosid.id.IdorderItemId Id of the OrderItem
Returnosid.ordering.OrderItem the order item
ErrorsNOT_FOUND orderItemId not found
NULL_ARGUMENT orderItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrderItemsByIds
Description

Gets an OrderItemList corresponding to the given IdList. In plenary mode, the returned list contains all of the order items specified in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible OrderItems may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListorderItemIds the list of Ids to retrieve
Returnosid.ordering.OrderItemList the returned OrderItem list
ErrorsNOT_FOUND an Id was not found
NULL_ARGUMENT orderItemIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrderItemsByGenusType
Description

Gets an OrderItemList corresponding to the given order item genus Type which does not include order items of genus types derived from the specified Type.In plenary mode, the returned list contains all known order items or an error results. Otherwise, the returned list may contain only those order items that are accessible through this session.

Parametersosid.type.TypeorderItemGenusType an order item genus type
Returnosid.ordering.OrderItemList the returned OrderItem list
ErrorsNULL_ARGUMENT orderItemGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrderItemsByParentGenusType
Description

Gets an OrderItemList corresponding to the given order item genus Type and include any additional order items with genus types derived from the specified Type.In plenary mode, the returned list contains all known order items or an error results. Otherwise, the returned list may contain only those order items that are accessible through this session.

Parametersosid.type.TypeorderItemGenusType an order item genus type
Returnosid.ordering.OrderItemList the returned OrderItem list
ErrorsNULL_ARGUMENT orderItemGenusType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrderItemsByRecordType
Description

Gets an OrderItemList containing the given repository record Type. In plenary mode, the returned list contains all known order items or an error results. Otherwise, the returned list may contain only those order items that are accessible through this session.

Parametersosid.type.TypeorderItemRecordType an order item record type
Returnosid.ordering.OrderItemList the returned OrderItem list
ErrorsNULL_ARGUMENT orderItemRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrderItemsForOrder
Description

Gets an OrderItemList for the given order.

In plenary mode, the returned list contains all known order items or an error results. Otherwise, the returned list may contain only those order items that are accessible through this session.

Parametersosid.id.IdorderId an Id of an Order
Returnosid.ordering.OrderItemList the returned OrderItemList
ErrorsNULL_ARGUMENT orderId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetOrderItems
Description

Gets all OrderItems. In plenary mode, the returned list contains all known order items or an error results. Otherwise, the returned list may contain only those order items that are accessible through this session.

Returnosid.ordering.OrderItemList a list of OrderItems
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.