OSID Logo
OSID Specifications
inventory package
Version 3.1.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.IditemId an item Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT itemId is null
Compliancemandatory This method must be implemented.
MethodclearItemIdTerms
Description

Clears the item Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsItemQuery
Description

Tests if an ItemQuery is available.

Returnboolean true if an item query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetItemQuery
Description

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

Returnosid.inventory.ItemQuery the item query
ErrorsUNIMPLEMENTED supportsItemQuery() is false
Complianceoptional This method must be implemented if supportsItemQuery() is true.
MethodmatchAnyItem
Description

Matches warehouses that have any item.

Parametersbooleanmatch true to match warehouses with any item, false to match warehouses with no items
Compliancemandatory This method must be implemented.
MethodclearItemTerms
Description

Clears the item query terms.

Compliancemandatory This method must be implemented.
MethodmatchStockId
Description

Sets the catalog Id for this query.

Parametersosid.id.IdstockId a stock Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT stockId is null
Compliancemandatory This method must be implemented.
MethodclearStockIdTerms
Description

Clears the stock Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsStockQuery
Description

Tests if a StockQuery is available.

Returnboolean true if a stock query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetStockQuery
Description

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

Returnosid.inventory.StockQuery the stock query
ErrorsUNIMPLEMENTED supportsStockQuery() is false
Complianceoptional This method must be implemented if supportsStockQuery() is true.
MethodmatchAnyStock
Description

Matches warehouses that have any stock.

Parametersbooleanmatch true to match courses with any stock, false to match courses with no stock
Compliancemandatory This method must be implemented.
MethodclearStockTerms
Description

Clears the stock query terms.

Compliancemandatory This method must be implemented.
MethodmatchModelId
Description

Sets the model Id for this query.

Parametersosid.id.IdmodelId a model Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT modelId is null
Compliancemandatory This method must be implemented.
MethodclearModelIdTerms
Description

Clears the model Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsModelQuery
Description

Tests if a ModelQuery is available.

Returnboolean true if a model query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetModelQuery
Description

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

Returnosid.inventory.ModelQuery the model query
ErrorsUNIMPLEMENTED supportsModelQuery() is false
Complianceoptional This method must be implemented if supportsModelQuery() is true.
MethodmatchAnyModel
Description

Matches any related model.

Parametersbooleanmatch true to match warehouses with any model, false to match warehouses with no models
Compliancemandatory This method must be implemented.
MethodclearModelTerms
Description

Clears the model terms.

Compliancemandatory This method must be implemented.
MethodmatchInventoryId
Description

Sets the inventory Id for this query.

Parametersosid.id.IditemId an inventory Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT inventoryId is null
Compliancemandatory This method must be implemented.
MethodclearInventoryIdTerms
Description

Clears the inventory Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsInventoryQuery
Description

Tests if an InventoryQuery is available.

Returnboolean true if an inventory query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetInventoryQuery
Description

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

Returnosid.inventory.InventoryQuery the inventory query
ErrorsUNIMPLEMENTED supportsInventoryQuery() is false
Complianceoptional This method must be implemented if supportsInventoryQuery() is true.
MethodmatchAnyInventory
Description

Matches warehouses that have any inventory.

Parametersbooleanmatch true to match warehouses with any inventory, false to match warehouses with no inventories
Compliancemandatory This method must be implemented.
MethodclearInventoryTerms
Description

Clears the inventory query terms.

Compliancemandatory This 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.IdwarehouseId a warehouse Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT warehouseId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorWarehouseIdTerms
Description

Clears the ancestor warehouse Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorWarehouseQuery
Description

Tests if a WarehouseQuery is available.

Returnboolean true if a warehouse query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorWarehouseQuery
Description

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

Returnosid.inventory.WarehouseQuery the warehouse query
ErrorsUNIMPLEMENTED supportsAncestorWarehouseQuery() is false
Complianceoptional This method must be implemented if supportsAncestorWarehouseQuery() is true.
MethodmatchAnyAncestorWarehouse
Description

Matches warehouses with any warehouse ancestor.

Parametersbooleanmatch true to match warehouses with any ancestor, false to match root warehouses
Compliancemandatory This method must be implemented.
MethodclearAncestorWarehouseTerms
Description

Clears the ancestor warehouse query terms.

Compliancemandatory This 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.IdwarehouseId a warehouse Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT warehouseId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantWarehouseIdTerms
Description

Clears the descendant warehouse Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantWarehouseQuery
Description

Tests if a WarehouseQuery is available.

Returnboolean true if a warehouse query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantWarehouseQuery
Description

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

Returnosid.inventory.WarehouseQuery the warehouse query
ErrorsUNIMPLEMENTED supportsDescendantWarehouseQuery() is false
Complianceoptional This method must be implemented if supportsDescendantWarehouseQuery() is true.
MethodmatchAnyDescendantWarehouse
Description

Matches warehouses with any descendant warehouse.

Parametersbooleanmatch true to match warehouses with any descendant, false to match leaf warehouses
Compliancemandatory This method must be implemented.
MethodclearDescendantWarehouseTerms
Description

Clears the descendant warehouse query terms.

Compliancemandatory This 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.TypewarehouseRecordType a warehouse record type
Returnosid.inventory.records.WarehouseQueryRecord the warehouse query record
ErrorsNULL_ARGUMENT warehouseRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(warehouseRecordType) is false
Compliancemandatory This method must be implemented.