Interface | osid.inventory.InventoryWarehouseAssignmentSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods to re-assign Adding a reference of an | ||
Method | canAssignInventories | ||
Description |
Tests if this user can alter inventory/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 | canAssignInventoriesToWarehouse | ||
Description |
Tests if this user can alter inventory/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 inventory 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 | getAssignableWarehouseIdsForInventory | ||
Description |
Gets a list of warehouses including and under the given warehouse node in which a specific inventory can be assigned. | ||
Parameters | osid.id.Id | warehouseId | the Id of the Warehouse |
osid.id.Id | inventoryId | the Id of the Inventory | |
Return | osid.id.IdList | list of assignable warehouse Ids | |
Errors | NULL_ARGUMENT | warehouseId or inventoryId is null
| |
OPERATION_FAILED | unable to complete request | ||
Compliance | mandatory | This method must be implemented. | |
Method | assignInventoryToWarehouse | ||
Description |
Adds an existing | ||
Parameters | osid.id.Id | inventoryId | the Id of the Inventory |
osid.id.Id | warehouseId | the Id of the Warehouse | |
Errors | ALREADY_EXISTS | inventoryId is already assigned to warehouseId
| |
NOT_FOUND | inventoryId or warehouseId not found | ||
NULL_ARGUMENT | inventoryId or warehouseId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | unassignInventoryFromWarehouse | ||
Description |
Removes an | ||
Parameters | osid.id.Id | inventoryId | the Id of the Inventory |
osid.id.Id | warehouseId | the Id of the Warehouse | |
Errors | NOT_FOUND | inventoryId or warehouseId not found or
inventoryId not assigned to warehouseId | |
NULL_ARGUMENT | inventoryId or warehouseId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |