OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.InventorySearchOrder
Implementsosid.OsidObjectSearchOrder
osid.OsidSubjugateableSearchOrder
Used Byosid.inventory.InventorySearchSession
osid.inventory.InventorySmartWarehouseSession
Description

An interface for specifying the ordering of search results.

MethodorderByStock
Description

Specifies a preference for ordering the result set by the stock.

Parametersosid.SearchOrderStylestyle a search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsStockSearchOrder
Description

Tests if a StockSearchOrder is available.

Returnboolean true if a stock search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetStockSearchOrder
Description

Gets the search order for a stock.

Returnosid.inventory.StockSearchOrder the stock search order
ErrorsUNIMPLEMENTED supportsStockSearchOrder() is false
Complianceoptional This method must be implemented if supportsStockSearchOrder() is true.
MethodorderByDate
Description

Specifies a preference for ordering the result set by the date.

Parametersosid.SearchOrderStylestyle a search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodorderByQuantity
Description

Specifies a preference for ordering the result set by the quantity.

Parametersosid.SearchOrderStylestyle a search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodgetInventorySearchOrderRecord
Description

Gets the inventory search order record corresponding to the given inventory record Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TypeinventoryRecordType an inventory record type
Returnosid.inventory.records.InventorySearchOrderRecord the inventory search order record
ErrorsNULL_ARGUMENT inventoryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(inventoryRecordType) is false
Compliancemandatory This method must be implemented.