| Interface | osid.billing.ItemBusinessAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Adding a reference of an | ||
| Method | canAssignItems | ||
| Description |
Tests if this user can alter item/business 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 | canAssignItemToBusiness | ||
| Description |
Tests if this user can alter item/business 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 | businessId | the Id of the Business |
| Return | boolean | false if mapping is not authorized, true
otherwise | |
| Errors | NULL_ARGUMENT | businessId is null | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableBusinessIds | ||
| Description |
Gets a list of businesses including and under the given business node in which any item can be assigned. | ||
| Parameters | osid.id.Id | businessId | the Id of the Business |
| Return | osid.id.IdList | list of assignable business Ids | |
| Errors | NULL_ARGUMENT | businessId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getAssignableBusinessIdsForItem | ||
| Description |
Gets a list of businesses including and under the given business node in which a specific item can be assigned. | ||
| Parameters | osid.id.Id | businessId | the Id of the Business |
osid.id.Id | itemId | the Id of the Item | |
| Return | osid.id.IdList | list of assignable business Ids | |
| Errors | NULL_ARGUMENT | businessId or itemId is null | |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignItemToBusiness | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | itemId | the Id of the Item |
osid.id.Id | businessId | the Id of the Business | |
| Errors | ALREADY_EXISTS | itemId is already assigned to businessId | |
| NOT_FOUND | itemId or businessId not found | ||
| NULL_ARGUMENT | itemId or businessId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignItemFromBusiness | ||
| Description |
Removes an | ||
| Parameters | osid.id.Id | itemId | the Id of the Item |
osid.id.Id | businessId | the Id of the Business | |
| Errors | NOT_FOUND | itemId or businessId not found or
itemId not assigned to businessId | |
| NULL_ARGUMENT | itemId or businessId is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignItemToBusiness | ||
| Description |
Moves an | ||
| Parameters | osid.id.Id | itemId | the Id of the Item |
osid.id.Id | fromBusinessId | the Id of the current Business | |
osid.id.Id | toBusinessId | the Id of the destination Business | |
| Errors | NOT_FOUND | itemId, fromBusinessId, or toBusinessId not
found or itemId not mapped to fromBusinessId | |
| NULL_ARGUMENT | itemId, fromBusinessId, or toBusinessId is
null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |