| Interface | osid.inventory.shipment.ShipmentWarehouseAssignmentSession | ||
|---|---|---|---|
| Implements | osid.OsidSession | ||
| Description |
This session provides methods to re-assign Adding a reference of a | ||
| Method | canAssignShipments | ||
| Description |
Tests if this user can alter shipment/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 | canAssignShipmentToWarehouse | ||
| Description |
Tests if this user can alter shipment/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 shipment 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 | getAssignableWarehouseIdsForShipment | ||
| Description |
Gets a list of warehouses including and under the given warehouse node in which a specific shipment can be assigned. | ||
| Parameters | osid.id.Id | warehouseId | the Id of the Warehouse |
osid.id.Id | shipmentId | the Id of the Shipment | |
| Return | osid.id.IdList | list of assignable warehouse Ids | |
| Errors | NULL_ARGUMENT | warehouseId or shipmentId is null
| |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | assignShipmentToWarehouse | ||
| Description |
Adds an existing | ||
| Parameters | osid.id.Id | shipmentId | the Id of the Shipment |
osid.id.Id | warehouseId | the Id of the Warehouse | |
| Errors | ALREADY_EXISTS | shipmentId is already assigned to warehouseId | |
| NOT_FOUND | shipmentId or warehouseId not found | ||
| NULL_ARGUMENT | shipmentId or warehouseId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | unassignShipmentFromWarehouse | ||
| Description |
Removes a | ||
| Parameters | osid.id.Id | shipmentId | the Id of the Shipment |
osid.id.Id | warehouseId | the Id of the Warehouse | |
| Errors | NOT_FOUND | shipmentId or warehouseId not found or
shipmentId not assigned to warehouseId | |
| NULL_ARGUMENT | shipmentId or warehouseId is null
| ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | reassignShipmentToWarehouse | ||
| Description |
Moves a | ||
| Parameters | osid.id.Id | shipmentId | the Id of the Shipment |
osid.id.Id | fromWarehouseId | the Id of the current Warehouse | |
osid.id.Id | toWarehouseId | the Id of the destination Warehouse | |
| Errors | NOT_FOUND | shipmentId, fromWarehouseId, or toWarehouseId
not found or shipmentId not mapped to fromWarehouseId
| |
| NULL_ARGUMENT | shipmentId, fromWarehouseId, or toWarehouseId
is null | ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |