| Interface | osid.ordering.OrderItemLookupSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.ordering.OrderingManager | ||
osid.ordering.OrderingProxyManager | |||
| Description |
This session provides methods for retrieving
This session defines views that offer differing behaviors when retrieving multiple objects.
Like all | ||
| Method | getStoreId | ||
| Description |
Gets the | ||
| Return | osid.id.Id | the Store Id associated with this session | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getStore | ||
| Description |
Gets the | ||
| Return | osid.ordering.Store | the store | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canLookupOrderItems | ||
| Description |
Tests if this user can perform | ||
| Return | boolean | false if lookup methods are not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | useComparativeOrderItemView | ||
| 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. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | usePlenaryOrderItemView | ||
| Description |
A complete view of the | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | useFederatedStoreView | ||
| 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. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | useIsolatedStoreView | ||
| Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this store only. | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItem | ||
| Description |
Gets the | ||
| Parameters | osid.id.Id | orderItemId | Id of the OrderItem |
| Return | osid.ordering.OrderItem | the order item | |
| Errors | NOT_FOUND | orderItemId not found | |
| NULL_ARGUMENT | orderItemId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItemsByIds | ||
| Description |
Gets an | ||
| Parameters | osid.id.IdList | orderItemIds | the list of Ids to retrieve |
| Return | osid.ordering.OrderItemList | the returned OrderItem list | |
| Errors | NOT_FOUND | an Id was not found | |
| NULL_ARGUMENT | orderItemIds is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItemsByGenusType | ||
| Description |
Gets an | ||
| Parameters | osid.type.Type | orderItemGenusType | an order item genus type |
| Return | osid.ordering.OrderItemList | the returned OrderItem list | |
| Errors | NULL_ARGUMENT | orderItemGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItemsByParentGenusType | ||
| Description |
Gets an | ||
| Parameters | osid.type.Type | orderItemGenusType | an order item genus type |
| Return | osid.ordering.OrderItemList | the returned OrderItem list | |
| Errors | NULL_ARGUMENT | orderItemGenusType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItemsByRecordType | ||
| Description |
Gets an | ||
| Parameters | osid.type.Type | orderItemRecordType | an order item record type |
| Return | osid.ordering.OrderItemList | the returned OrderItem list | |
| Errors | NULL_ARGUMENT | orderItemRecordType is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItemsForOrder | ||
| Description |
Gets an 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. | ||
| Parameters | osid.id.Id | orderId | an Id of an Order |
| Return | osid.ordering.OrderItemList | the returned OrderItemList | |
| Errors | NULL_ARGUMENT | orderId is null | |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItems | ||
| Description |
Gets all | ||
| Return | osid.ordering.OrderItemList | a list of OrderItems | |
| Errors | OPERATION_FAILED | unable to complete request | |
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |