| Interface | osid.ordering.ProductStoreAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Adding a reference of a | ||
| Method | canAssignProducts | ||
| Description |
Tests if this user can alter product/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 | canAssignProductsToStore | ||
| Description |
Tests if this user can alter product/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 product 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 | getAssignableStoreIdsForProduct | ||
| Description |
Gets a list of stores including and under the given store node in which a specific product can be assigned. | ||
| Parameters | osid.id.Id | storeId | the Id of the Store |
osid.id.Id | productId | the Id of the Product | |
| Return | osid.id.IdList | list of assignable store Ids | |
| Errors | NULL_ARGUMENT | storeId or productId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignProductToStore | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | productId | the Id of the Product |
osid.id.Id | storeId | the Id of the Store | |
| Errors | ALREADY_EXISTS | productId is already assigned to storeId | |
| NOT_FOUND | productId or storeId not found | ||
| NULL_ARGUMENT | productId or storeId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignProductFromStore | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | productId | the Id of the Product |
osid.id.Id | storeId | the Id of the Store | |
| Errors | NOT_FOUND | productId or storeId not found or
productId not assigned to storeId | |
| NULL_ARGUMENT | productId or storeId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |