Interface | osid.inventory.ModelWarehouseAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Adding a reference of a | ||
Method | canAssignModels | ||
Description |
Tests if this user can alter model/warehouse 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 | canAssignModelToWarehouse | ||
Description |
Tests if this user can alter model/warehouse 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 | warehouseId | the Id of the Warehouse |
Return | boolean | false if mapping is not authorized, true
otherwise | |
Errors | NULL_ARGUMENT | warehouseId is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableWarehouseIds | ||
Description |
Gets a list of warehouses including and under the given warehouse node in which any model can be assigned. | ||
Parameters | osid.id.Id | warehouseId | the Id of the Warehouse |
Return | osid.id.IdList | list of assignable warehouse Ids | |
Errors | NULL_ARGUMENT | warehouseId is null | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | getAssignableWarehouseIdsForModel | ||
Description |
Gets a list of warehouses including and under the given warehouse node in which a specific model can be assigned. | ||
Parameters | osid.id.Id | warehouseId | the Id of the Warehouse |
osid.id.Id | modelId | the Id of the Model | |
Return | osid.id.IdList | list of assignable warehouse Ids | |
Errors | NULL_ARGUMENT | warehouseId or modelId is null | |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignModelToWarehouse | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | modelId | the Id of the Model |
osid.id.Id | warehouseId | the Id of the Warehouse | |
Errors | ALREADY_EXISTS | modelId is already assigned to warehouseId | |
NOT_FOUND | modelId or warehouseId not found | ||
NULL_ARGUMENT | modelId or warehouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignModelFromWarehouse | ||
Description |
Removes a | ||
Parameters | osid.id.Id | modelId | the Id of the Model |
osid.id.Id | warehouseId | the Id of the Warehouse | |
Errors | NOT_FOUND | modelId or warehouseId not found or
modelId not assigned to warehouseId | |
NULL_ARGUMENT | modelId or warehouseId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |