OSID Logo
OSID Specifications
inventory package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.WarehouseQuery
Implementsosid.OsidCatalogQuery
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
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT itemId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsItemQuery() is false
ComplianceoptionalThis 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
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
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT stockId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsStockQuery() is false
ComplianceoptionalThis 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
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
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT modelId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsModelQuery() is false
ComplianceoptionalThis 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
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
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT inventoryId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsInventoryQuery() is false
ComplianceoptionalThis 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
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
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT warehouseId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsAncestorWarehouseQuery() is false
ComplianceoptionalThis 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
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 an descendant.

Parametersosid.id.IdwarehouseIda warehouse Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT warehouseId 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.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsDescendantWarehouseQuery() is false
ComplianceoptionalThis 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
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_ARGUMENT warehouseRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(warehouseRecordType) is false
CompliancemandatoryThis method must be implemented.