| Interface | osid.ordering.OrderItemStoreAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Used By | osid.ordering.OrderingManager | ||
osid.ordering.OrderingProxyManager | |||
| Description |
This session provides methods to re-assign
Adding a reference of a Like all | ||
| Method | canAssignOrderItems | ||
| Description |
Tests if this user can alter order item/store
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canAssignOrderItemsToStore | ||
| Description |
Tests if this user can alter order item/store
mappings. A return of true does not guarantee successful
authorization. A return of false indicates that it is
known mapping methods in this session will result in a
| ||
| Parameters | osid.id.Id | storeId | the Id of the Store |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | storeId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableStoreIds | ||
| Description |
Gets a list of stores including and under the given store node in which any order item can be assigned. | ||
| Parameters | osid.id.Id | storeId | the Id of the Store |
| Return | osid.id.IdList | list of assignable store Ids | |
| Errors | NULL_ARGUMENT | storeId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableStoreIdsForOrderItem | ||
| Description |
Gets a list of stores including and under the given store node in which a specific order item can be assigned. | ||
| Parameters | osid.id.Id | storeId | the Id of the Store |
osid.id.Id | orderItemId | the Id of the OrderItem | |
| Return | osid.id.IdList | list of assignable store Ids | |
| Errors | NULL_ARGUMENT | storeId or orderItemId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignOrderItemToStore | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | orderItemId | the Id of the OrderItem |
osid.id.Id | storeId | the Id of the Store | |
| Errors | ALREADY_EXISTS | orderItemId is already assigned to storeId | |
| NOT_FOUND | orderItemId or storeId not found | ||
| NULL_ARGUMENT | orderItemId or storeId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignOrderItemFromStore | ||
| Description |
Removes an | ||
| Parameters | osid.id.Id | orderItemId | the Id of the OrderItem |
osid.id.Id | storeId | the Id of the Store | |
| Errors | NOT_FOUND | orderItemId or storeId not found or
orderItemId not assigned to storeId | |
| NULL_ARGUMENT | orderItemId or storeId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignOrderItemToStore | ||
| Description |
Moves an | ||
| Parameters | osid.id.Id | orderItemId | the Id of the OrderItem |
osid.id.Id | fromStoreId | the Id of the current Store | |
osid.id.Id | toStoreId | the Id of the destination Store | |
| Errors | ALREADY_EXISTS | orderItemId already assigned to storeId | |
| NOT_FOUND | orderItemId, fromStoreId, or toStoreId not found
or orderItemId not mapped to fromStoreId | ||
| NULL_ARGUMENT | orderItemId, fromStoreId, or toStoreId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |