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