Interface | osid.inventory.StockLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving stocks. This lookup session defines several views:
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 | canLookupStocks | ||
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 | useComparativeStockView | ||
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 | usePlenaryStockView | ||
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 stocks in catalogs which are children of this catalog 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 retrievals to this warehouse only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getStock | ||
Description |
Gets the | ||
Parameters | osid.id.Id | stockId | the Id of the Stock to retrieve |
Return | osid.inventory.Stock | the returned Stock | |
Errors | NOT_FOUND | no Stock found with the given Id | |
NULL_ARGUMENT | stockId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStocksByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | stockIds | the list of Ids to retrieve |
Return | osid.inventory.StockList | the returned Stock list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | stockIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStocksByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | stockGenusType | a stock genus type |
Return | osid.inventory.StockList | the returned Stock list | |
Errors | NULL_ARGUMENT | stockGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStocksByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | stockGenusType | a stock genus type |
Return | osid.inventory.StockList | the returned Stock list | |
Errors | NULL_ARGUMENT | stockGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStocksByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | stockRecordType | a stock record type |
Return | osid.inventory.StockList | the returned Stock list | |
Errors | NULL_ARGUMENT | stockRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStocksBySKU | ||
Description |
Gets a | ||
Parameters | string | sku | a stock keeping unit |
Return | osid.inventory.StockList | the returned Stock list | |
Errors | NULL_ARGUMENT | sku is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getStocks | ||
Description |
Gets all | ||
Return | osid.inventory.StockList | a list of Stocks | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |