Interface | osid.inventory.InventoryLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. The methods | ||
Method | getWarehouseId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Warehouse Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getWarehouse | ||
Description |
Gets the | ||
Return | osid.inventory.Warehouse | the warehouse | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupInventories | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeInventoryView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryInventoryView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedWarehouseView | ||
Description |
Federates the view for methods in this session. A federated view will include inventories in warehouses which are children of this warehouse in the warehouse hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedWarehouseView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this warehouse only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getInventory | ||
Description |
Gets the | ||
Parameters | osid.id.Id | inventoryId | Id of the Inventory |
Return | osid.inventory.Inventory | the inventory | |
Errors | NOT_FOUND | inventoryId not found | |
NULL_ARGUMENT | inventoryId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getInventoriesByIds | ||
Description |
Gets an | ||
Parameters | osid.id.IdList | inventoryIds | the list of Ids to retrieve |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | inventoryIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getInventoriesByGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | inventoryGenusType | an inventory genus type |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | NULL_ARGUMENT | inventoryGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getInventoriesByParentGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | inventoryGenusType | an inventory genus type |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | NULL_ARGUMENT | inventoryGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getInventoriesByRecordType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | inventoryRecordType | an inventory record type |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | NULL_ARGUMENT | inventoryRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRecentInventories | ||
Description |
Gets the most recent | ||
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getInventoriesByDate | ||
Description |
Gets | ||
Parameters | osid.calendaring.DateTime | from | starting date |
osid.calendaring.DateTime | to | ending date | |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getInventoriesForStock | ||
Description |
Gets all | ||
Parameters | osid.id.Id | stockId | a stock Id |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getRecentInventoriesForStock | ||
Description |
Gets the most recent | ||
Parameters | osid.id.Id | stockId | an inventory Id |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | NULL_ARGUMENT | stockId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getInventoriesByDateForStock | ||
Description |
Gets | ||
Parameters | osid.id.Id | stockId | an inventory Id |
osid.calendaring.DateTime | from | starting date | |
osid.calendaring.DateTime | to | ending date | |
Return | osid.inventory.InventoryList | the returned Inventory list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | stockid, from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getInventories | ||
Description |
Gets all | ||
Return | osid.inventory.InventoryList | a list of Inventories | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |