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

This session provides methods for searching among Inventories. 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.InventorySearch the inventory search
Compliancemandatory This 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.InventorySearchOrder the inventory search order
Compliancemandatory This method must be implemented.
MethodgetInventoriesBySearch
Description

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

Parametersosid.inventory.InventoryQueryinventoryQuery the inventory query
osid.inventory.InventorySearchinventorySearch the inventory search
Returnosid.inventory.InventorySearchResults the inventory search results
ErrorsNULL_ARGUMENT inventoryQuery or inventorySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED inventoryQuery or inventorySearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetInventoryQueryFromInspector
Description

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

Parametersosid.inventory.InventoryQueryInspectorinventoryQueryInspector an inventory query inspector
Returnosid.inventory.InventoryQuery the inventory query
ErrorsNULL_ARGUMENT inventoryQueryInspector is null
UNSUPPORTED inventoryQueryInspector is not of this service
Compliancemandatory This method must be implemented.