OSID Logo
OSID Specifications
inventory package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.InventoryQuery
Implementsosid.OsidObjectQuery
osid.OsidSubjugateableQuery
Description

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

MethodmatchStockId
Description

Sets the stock Id for this query.

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

Clears the stock Id 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 stocjk. 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.
MethodclearStockTerms
Description

Clears the stock terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDate
Description

Matches inventories where the given time falls within a denormalized inventory date inclusive.

Parametersosid.calendaring.DateTimedatea date
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT date is null
CompliancemandatoryThis method must be implemented.
MethodclearDateTerms
Description

Clears the meeting time terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDateInclusive
Description

Matches inventories with any denormalized date within the given date range inclusive.

Parametersosid.calendaring.DateTimestarta start date
osid.calendaring.DateTimeendan end date
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
NULL_ARGUMENT start or end is null
CompliancemandatoryThis method must be implemented.
MethodclearDateInclusiveTerms
Description

Clears the date inclusive terms.

CompliancemandatoryThis method must be implemented.
MethodmatchQuantity
Description

Matches inventories with a quantity within the given range inclusive.

Parametersdecimalstartstart range
decimalendend range
booleanmatch true if a positive match, false for a negative match
ErrorsINVALID_ARGUMENT start is greater than end
CompliancemandatoryThis method must be implemented.
MethodclearQuantityTerms
Description

Clears the quantity terms.

CompliancemandatoryThis method must be implemented.
MethodmatchWarehouseId
Description

Sets the warehouse Id for this query to match inventories assigned to warehouses.

Parametersosid.id.IdwarehouseIdthe warehouse Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT warehouseId is null
CompliancemandatoryThis method must be implemented.
MethodclearWarehouseIdTerms
Description

Clears the warehouse Id query terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsWarehouseQuery
Description

Tests if a WarehouseQuery is available.

Returnboolean true if a warehouse query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetWarehouseQuery
Description

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

Returnosid.inventory.WarehouseQuerythe warehouse query
ErrorsUNIMPLEMENTED supportsWarehouseQuery() is false
ComplianceoptionalThis method must be implemented if supportsWarehouseQuery() is true.
MethodclearWarehouseTerms
Description

Clears the warehouse terms.

CompliancemandatoryThis method must be implemented.
MethodgetInventoryQueryRecord
Description

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

Parametersosid.type.TypeinventoryRecordTypean inventory record type
Returnosid.inventory.records.InventoryQueryRecordthe inventory query record
ErrorsNULL_ARGUMENT inventoryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(inventoryRecordType) is false
CompliancemandatoryThis method must be implemented.