OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.InventoryWarehouseAssignmentSession
Implementsosid.OsidSession
Used Byosid.inventory.InventoryManager
osid.inventory.InventoryProxyManager
Description

This session provides methods to re-assign Inventories to Warehouses. An Inventory may appear in multiple Warehouse objects and removing the last reference to an Inventory 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 an Inventory to another Warehouse is not a copy operation (eg: does not change its Id).

MethodcanAssignInventories
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 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
Compliancemandatory This method must be implemented.
MethodcanAssignInventoriesToWarehouse
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 PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

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

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

Parametersosid.id.IdwarehouseId the Id of the Warehouse
Returnosid.id.IdList list of assignable warehouse Ids
ErrorsNULL_ARGUMENT warehouseId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetAssignableWarehouseIdsForInventory
Description

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

Parametersosid.id.IdwarehouseId the Id of the Warehouse
osid.id.IdinventoryId the Id of the Inventory
Returnosid.id.IdList list of assignable warehouse Ids
ErrorsNULL_ARGUMENT warehouseId or inventoryId is null
OPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodassignInventoryToWarehouse
Description

Adds an existing Inventory to a Warehouse.

Parametersosid.id.IdinventoryId the Id of the Inventory
osid.id.IdwarehouseId the Id of the Warehouse
ErrorsALREADY_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
Compliancemandatory This method must be implemented.
MethodunassignInventoryFromWarehouse
Description

Removes an Inventory from a Warehouse.

Parametersosid.id.IdinventoryId the Id of the Inventory
osid.id.IdwarehouseId the Id of the Warehouse
ErrorsNOT_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
Compliancemandatory This method must be implemented.
MethodreassignInventoryToWarehouse
Description

Moves an Inventory from one Warehouse to another. Mappings to other Warehouses are unaffected.

Parametersosid.id.IdinventoryId the Id of the Inventory
osid.id.IdfromWarehouseId the Id of the current Warehouse
osid.id.IdtoWarehouseId the Id of the destination Warehouse
ErrorsALREADY_EXISTS inventoryId already assigned to toWarehouseId
NOT_FOUND inventoryId, fromWarehouseId, or toWarehouseId not found or inventoryId not mapped to fromWarehouseId
NULL_ARGUMENT inventoryId, fromWarehouseId, or toWarehouseId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.