OSID Logo
OSID Specifications
inventory package
Version 3.0.0
Interfaceosid.inventory.WarehouseQuery
Implementsosid.OsidCatalogQuery
Used Byosid.inventory.InventoryQuery
osid.inventory.ItemQuery
osid.inventory.ModelQuery
osid.inventory.StockQuery
osid.inventory.WarehouseQuery
osid.inventory.WarehouseQuerySession
osid.inventory.WarehouseSearchSession
osid.inventory.shipment.EntryQuery
osid.inventory.shipment.ShipmentQuery
Description

This is the query for searching warehouses. Each method match specifies an AND term while multiple invocations of the same method produce a nested OR .

MethodmatchItemId
Description

Sets the item Id for this query.

Parametersosid.id.IditemIdan item Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTitemId is null
CompliancemandatoryThis method must be implemented.
MethodclearItemIdTerms
Description

Clears the item Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsItemQuery
Description

Tests if an ItemQuery is available.

Returnbooleantrue if an item query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetItemQuery
Description

Gets the query for an item. Multiple retrievals produce a nested OR term.

Returnosid.inventory.ItemQuerythe item query
ErrorsUNIMPLEMENTEDsupportsItemQuery() is false
ComplianceoptionalThis method must be implemented if supportsItemQuery() is true .
MethodmatchAnyItem
Description

Matches warehouses that have any item.

Parametersbooleanmatchtrue to match warehouses with any item, false to match warehouses with no items
CompliancemandatoryThis method must be implemented.
MethodclearItemTerms
Description

Clears the item query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchStockId
Description

Sets the catalog Id for this query.

Parametersosid.id.IdstockIda stock Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTstockId is null
CompliancemandatoryThis method must be implemented.
MethodclearStockIdTerms
Description

Clears the stock Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsStockQuery
Description

Tests if a StockQuery is available.

Returnbooleantrue if a stock query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetStockQuery
Description

Gets the query for a stock. Multiple retrievals produce a nested OR term.

Returnosid.inventory.StockQuerythe stock query
ErrorsUNIMPLEMENTEDsupportsStockQuery() is false
ComplianceoptionalThis method must be implemented if supportsStockQuery() is true .
MethodmatchAnyStock
Description

Matches warehouses that have any stock.

Parametersbooleanmatchtrue to match courses with any stock, false to match courses with no stock
CompliancemandatoryThis method must be implemented.
MethodclearStockTerms
Description

Clears the stock query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchModelId
Description

Sets the model Id for this query.

Parametersosid.id.IdmodelIda model Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTmodelId is null
CompliancemandatoryThis method must be implemented.
MethodclearModelIdTerms
Description

Clears the model Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsModelQuery
Description

Tests if a ModelQuery is available.

Returnbooleantrue if a model query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetModelQuery
Description

Gets the query for an inventory. Multiple retrievals produce a nested OR term.

Returnosid.inventory.ModelQuerythe model query
ErrorsUNIMPLEMENTEDsupportsModelQuery() is false
ComplianceoptionalThis method must be implemented if supportsModelQuery() is true .
MethodmatchAnyModel
Description

Matches any related model.

Parametersbooleanmatchtrue to match warehouses with any model, false to match warehouses with no models
CompliancemandatoryThis method must be implemented.
MethodclearModelTerms
Description

Clears the model terms.

CompliancemandatoryThis method must be implemented.
MethodmatchInventoryId
Description

Sets the inventory Id for this query.

Parametersosid.id.IditemIdan inventory Id
booleanmatchtrue if a positive match, false for a negative match
ErrorsNULL_ARGUMENTinventoryId is null
CompliancemandatoryThis method must be implemented.
MethodclearInventoryIdTerms
Description

Clears the inventory Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsInventoryQuery
Description

Tests if an InventoryQuery is available.

Returnbooleantrue if an inventory query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetInventoryQuery
Description

Gets the query for an inventory. Multiple retrievals produce a nested OR term.

Returnosid.inventory.InventoryQuerythe inventory query
ErrorsUNIMPLEMENTEDsupportsInventoryQuery() is false
ComplianceoptionalThis method must be implemented if supportsInventoryQuery() is true .
MethodmatchAnyInventory
Description

Matches warehouses that have any inventory.

Parametersbooleanmatchtrue to match warehouses with any inventory, false to match warehouses with no inventories
CompliancemandatoryThis method must be implemented.
MethodclearInventoryTerms
Description

Clears the inventory query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchAncestorWarehouseId
Description

Sets the warehouse Id for this query to match warehouses that have the specified warehouse as an ancestor.

Parametersosid.id.IdwarehouseIda warehouse Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTwarehouseId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorWarehouseIdTerms
Description

Clears the ancestor warehouse Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorWarehouseQuery
Description

Tests if a WarehouseQuery is available.

Returnbooleantrue if a warehouse query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetAncestorWarehouseQuery
Description

Gets the query for a warehouse. Multiple retrievals produce a nested OR term.

Returnosid.inventory.WarehouseQuerythe warehouse query
ErrorsUNIMPLEMENTEDsupportsAncestorWarehouseQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorWarehouseQuery() is true .
MethodmatchAnyAncestorWarehouse
Description

Matches warehouses with any warehouse ancestor.

Parametersbooleanmatchtrue to match warehouses with any ancestor, false to match root warehouses
CompliancemandatoryThis method must be implemented.
MethodclearAncestorWarehouseTerms
Description

Clears the ancestor warehouse query terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDescendantWarehouseId
Description

Sets the warehouse Id for this query to match warehouses that have the specified warehouse as a descendant.

Parametersosid.id.IdwarehouseIda warehouse Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTwarehouseId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantWarehouseIdTerms
Description

Clears the descendant warehouse Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantWarehouseQuery
Description

Tests if a WarehouseQuery is available.

Returnbooleantrue if a warehouse query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetDescendantWarehouseQuery
Description

Gets the query for a warehouse. Multiple retrievals produce a nested OR term.

Returnosid.inventory.WarehouseQuerythe warehouse query
ErrorsUNIMPLEMENTEDsupportsDescendantWarehouseQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantWarehouseQuery() is true .
MethodmatchAnyDescendantWarehouse
Description

Matches warehouses with any descendant warehouse.

Parametersbooleanmatchtrue to match warehouses with any descendant, false to match leaf warehouses
CompliancemandatoryThis method must be implemented.
MethodclearDescendantWarehouseTerms
Description

Clears the descendant warehouse query terms.

CompliancemandatoryThis method must be implemented.
MethodgetWarehouseQueryRecord
Description

Gets the warehouse query record corresponding to the given Warehouse record Type . Multiple record retrievals produce a nested OR term.

Parametersosid.type.TypewarehouseRecordTypea warehouse record type
Returnosid.inventory.records.WarehouseQueryRecordthe warehouse query record
ErrorsNULL_ARGUMENTwarehouseRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(warehouseRecordType) is false
CompliancemandatoryThis method must be implemented.