| Interface | osid.ordering.OrderItemAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Implemented By | osid.ordering.batch.OrderItemBatchAdminSession | ||
| Used By | osid.ordering.OrderingManager | ||
osid.ordering.OrderingProxyManager | |||
| Description |
This session creates, updates, and deletes
Create and update operations differ in their usage. To
create an For updates, The delete operations delete This session includes an 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 | canCreateOrderItems | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if OrderItem creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateOrderItemWithRecordTypes | ||
| Description |
Tests if this user can create a single
| ||
| Parameters | osid.type.Type[] | orderItemRecordTypes | array of order item record types |
| Return | boolean | true if OrderItem creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | orderItemRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItemFormForCreate | ||
| Description |
Gets the order item form for creating new order items. A new form should be requested for each create transaction. | ||
| Parameters | osid.id.Id | orderId | the order Id |
osid.id.Id | productId | the product Id | |
osid.type.Type[] | orderItemRecordTypes | array of order item record types | |
| Return | osid.ordering.OrderItemForm | the order item form | |
| Errors | NOT_FOUND | orderId or productId is not found | |
| NULL_ARGUMENT | orderId, productId or orderItemRecordTypes is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | unable to get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createOrderItem | ||
| Description |
Creates a new | ||
| Parameters | osid.ordering.OrderItemForm | orderItemForm | the form for this OrderItem |
| Return | osid.ordering.OrderItem | the new OrderItem | |
| Errors | ILLEGAL_STATE | orderItemForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | orderItemForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | orderItemForm did not originate from
getOrderItemFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateOrderItems | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if OrderItem modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getOrderItemFormForUpdate | ||
| Description |
Gets the order item form for updating an existing order item. A new order item form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | orderItemId | the Id of the OrderItem |
| Return | osid.ordering.OrderItemForm | the order item form | |
| Errors | NOT_FOUND | orderItemId is 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 | updateOrderItem | ||
| Description |
Updates an existing order item. | ||
| Parameters | osid.ordering.OrderItemForm | orderItemForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | orderItemForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | orderItemForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | orderItemForm did not originate from
getOrderItemFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteOrderItems | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if OrderItem deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteOrderItem | ||
| Description |
Deletes an | ||
| Parameters | osid.id.Id | orderItemId | the Id of the OrderItem to remove |
| 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 | canManageOrderItemAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if OrderItem aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasOrderItem | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | orderItemId | the Id of an OrderItem |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | orderItemId not found | ||
| NULL_ARGUMENT | orderItemId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |