OSID Logo
OSID Specifications
inventory shipment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.shipment.ShipmentWarehouseAssignmentSession
Implementsosid.OsidSession
Description

This session provides methods to re-assign Shipments to Warehouse objects A Shipment may appear in multiple Warehouse objects and removing the last reference to a Shipment is the equivalent of deleting it. Each Warehouse may have its own authorizations governing who is allowed to operate on it.

Adding a reference of a Shipment to another Warehouse is not a copy operation (eg: does not change its Id ).

MethodcanAssignShipments
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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer assignment operations to unauthorized users.

Returnboolean false if mapping is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodcanAssignShipmentToWarehouse
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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Parametersosid.id.IdwarehouseIdthe Id of the Warehouse
Returnboolean false if mapping is not authorized, true otherwise
ErrorsNULL_ARGUMENT warehouseId is null
CompliancemandatoryThis method must be implemented.
MethodgetAssignableWarehouseIds
Description

Gets a list of warehouses including and under the given warehouse node in which any shipment can be assigned.

Parametersosid.id.IdwarehouseIdthe Id of the Warehouse
Returnosid.id.IdListlist of assignable warehouse Ids
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodgetAssignableWarehouseIdsForShipment
Description

Gets a list of warehouses including and under the given warehouse node in which a specific shipment can be assigned.

Parametersosid.id.IdwarehouseIdthe Id of the Warehouse
osid.id.IdshipmentIdthe Id of the Shipment
Returnosid.id.IdListlist of assignable warehouse Ids
ErrorsNULL_ARGUMENT warehouseId or shipmentId is null
OPERATION_FAILEDunable to complete request
CompliancemandatoryThis method must be implemented.
MethodassignShipmentToWarehouse
Description

Adds an existing Shipment to a Warehouse.

Parametersosid.id.IdshipmentIdthe Id of the Shipment
osid.id.IdwarehouseIdthe Id of the Warehouse
ErrorsALREADY_EXISTS shipmentId is already assigned to warehouseId
NOT_FOUND shipmentId or warehouseId not found
NULL_ARGUMENT shipmentId or warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodunassignShipmentFromWarehouse
Description

Removes a Shipment from a Warehouse.

Parametersosid.id.IdshipmentIdthe Id of the Shipment
osid.id.IdwarehouseIdthe Id of the Warehouse
ErrorsNOT_FOUND shipmentId or warehouseId not found or shipmentId not assigned to warehouseId
NULL_ARGUMENT shipmentId or warehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodreassignShipmentToWarehouse
Description

Moves a Shipment from one Warehouse to another. Mappings to other Warehouses are unaffected.

Parametersosid.id.IdshipmentIdthe Id of the Shipment
osid.id.IdfromWarehouseIdthe Id of the current Warehouse
osid.id.IdtoWarehouseIdthe Id of the destination Warehouse
ErrorsNOT_FOUND shipmentId, fromWarehouseId, or toWarehouseId not found or shipmentId not mapped to fromWarehouseId
NULL_ARGUMENT shipmentId, fromWarehouseId, or toWarehouseId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.