| Interface | osid.ordering.ProductAdminSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
| 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 | canCreateProducts | ||
| Description |
Tests if this user can create | ||
| Return | boolean | false if Product creation is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateProductWithRecordTypes | ||
| Description |
Tests if this user can create a single | ||
| Parameters | osid.type.Type[] | productRecordTypes | array of product record types |
| Return | boolean | true if Product creation using the specified
record Types is supported, false otherwise | |
| Errors | NULL_ARGUMENT | productRecordTypes is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProductFormForCreate | ||
| Description |
Gets the product form for creating new products. A new form should be requested for each create transaction. | ||
| Parameters | osid.type.Type[] | productRecordTypes | array of product record types |
| Return | osid.ordering.ProductForm | the product form | |
| Errors | NULL_ARGUMENT | productRecordTypes 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 | createProduct | ||
| Description |
Creates a new | ||
| Parameters | osid.ordering.ProductForm | productForm | the form for this Product |
| Return | osid.ordering.Product | the new Product | |
| Errors | ILLEGAL_STATE | productForm already used in a create transaction | |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT | productForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | productForm did not originate from
getProductFormForCreate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateProducts | ||
| Description |
Tests if this user can update | ||
| Return | boolean | false if Product modification is not
authorized, true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getProductFormForUpdate | ||
| Description |
Gets the product form for updating an existing product. A new product form should be requested for each update transaction. | ||
| Parameters | osid.id.Id | productId | the Id of the Product |
| Return | osid.ordering.ProductForm | the product form | |
| Errors | NULL_ARGUMENT | productId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | updateProduct | ||
| Description |
Updates an existing product. | ||
| Parameters | osid.ordering.ProductForm | productForm | the form containing the elements to be updated |
| Errors | ILLEGAL_STATE | productForm already used in an update transaction | |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT | productForm is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | productForm did not originate from
getProductFormForUpdate() | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteProducts | ||
| Description |
Tests if this user can delete | ||
| Return | boolean | false if Product deletion is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteProduct | ||
| Description |
Deletes a | ||
| Parameters | osid.id.Id | productId | the Id of the Product to remove |
| Errors | NOT_FOUND | productId not found | |
| NULL_ARGUMENT | productId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageProductAliases | ||
| Description |
Tests if this user can manage | ||
| Return | boolean | false if Product aliasing is not authorized,
true otherwise | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasProduct | ||
| Description |
Adds an | ||
| Parameters | osid.id.Id | productId | the Id of a Product |
osid.id.Id | aliasId | the alias Id | |
| Errors | ALREADY_EXISTS | aliasId is already assigned | |
| NOT_FOUND | productId not found | ||
| NULL_ARGUMENT | productId or aliasId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |