OSID Logo
OSID Specifications
inventory package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.InventorySearchSession
Implementsosid.inventory.InventoryQuerySession
Description

This session provides methods for searching among Inventory objects. The search query is constructed using the InventoryQuery.

getInventoriesByQuery() is the basic search method and returns a list of Inventorys. A more advanced search may be performed with getInventorysBySearch(). It accepts an InventorySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getInventoriesBySearch() returns an InventorySearchResults that can be used to access the resulting InventoryList or be used to perform a search within the result set through InventorySearch.

This session defines views that offer differing behaviors for searching.

  • federated warehouse view: searches include inventories in warehouses of which this warehouse is an ancestor in the warehouse hierarchy
  • isolated warehouse view: searches are restricted to inventories in this warehouse

Inventories may have a query record indicated by their respective record types. The query record is accessed via the InventoryQuery.

MethodgetInventorySearch
Description

Gets an inventory search.

Returnosid.inventory.InventorySearchthe inventory search
CompliancemandatoryThis method must be implemented.
MethodgetInventorySearchOrder
Description

Gets an inventory search order. The InventorySearchOrder is supplied to an InventorySearch to specify the ordering of results.

Returnosid.inventory.InventorySearchOrderthe inventory search order
CompliancemandatoryThis method must be implemented.
MethodgetInventoriesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.inventory.InventoryQueryinventoryQuerythe inventory query
osid.inventory.InventorySearchinventorySearchthe inventory search
Returnosid.inventory.InventorySearchResultsthe inventory search results
ErrorsNULL_ARGUMENT inventoryQuery or inventorySearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED inventoryQuery or inventorySearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetInventoryQueryFromInspector
Description

Gets an inventory query from an inspector. The inspector is available from an InventorySearchResults.

Parametersosid.inventory.InventoryQueryInspectorinventoryQueryInspectoran inventory query inspector
Returnosid.inventory.InventoryQuerythe inventory query
ErrorsNULL_ARGUMENT inventoryQueryInspector is null
UNSUPPORTED inventoryQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.