OSID Logo
OSID Specifications
inventory shipment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.shipment.ShipmentQuery
Implementsosid.OsidObjectQuery
osid.OsidAggregateableQuery
Description

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

MethodmatchSourceId
Description

Sets the resource Id for this query.

Parametersosid.id.IdresourceIda resource Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT resourceId is null
CompliancemandatoryThis method must be implemented.
MethodclearSourceIdTerms
Description

Clears the resource Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsSourceQuery
Description

Tests if a ResourceQuery is available.

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

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

Returnosid.resource.ResourceQuerya resource query
ErrorsUNIMPLEMENTED supportsSourceQuery() is false
ComplianceoptionalThis method must be implemented if supportsSourceQuery() is true.
MethodmatchAnySource
Description

Matches shipments with any source.

Parametersbooleanmatch true to match shipments with any source, false to match shipments with no source
CompliancemandatoryThis method must be implemented.
MethodclearSourceTerms
Description

Clears the source terms.

CompliancemandatoryThis method must be implemented.
MethodmatchOrderId
Description

Sets the order Id for this query.

Parametersosid.id.IdorderIdan order Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT orderId is null
CompliancemandatoryThis method must be implemented.
MethodclearOrderIdTerms
Description

Clears the order Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsOrderQuery
Description

Tests if an OrderQuery is available.

Returnboolean true if an order query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetOrderQuery
Description

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

Returnosid.ordering.OrderQueryan odrer query
ErrorsUNIMPLEMENTED supportsOrderQuery() is false
ComplianceoptionalThis method must be implemented if supportsOrderQuery() is true.
MethodmatchAnyOrder
Description

Matches shipments with any related order.

Parametersbooleanmatch true to match shipments with any related order, false to match shipments with no order
CompliancemandatoryThis method must be implemented.
MethodclearOrderTerms
Description

Clears the order terms.

CompliancemandatoryThis method must be implemented.
MethodmatchDate
Description

Matches shipment dates within the given date range inclusive.

Parametersosid.calendaring.DateTimefromstart of range
osid.calendaring.DateTimetoend of range
booleanmatch true for a positive match, false for a negative match
ErrorsINVALID_ARGUMENT from is greater than to
NULL_ARGUMENT from or to is null
CompliancemandatoryThis method must be implemented.
MethodmatchAnyDate
Description

Matches shipments with any date.

Parametersbooleanmatch true to match shipments with any date, false to match shipments with no date
CompliancemandatoryThis method must be implemented.
MethodclearDateTerms
Description

Clears the shipment date.

CompliancemandatoryThis method must be implemented.
MethodmatchEntryId
Description

Sets the entry Id for this query.

Parametersosid.id.IdentryIdan entry Id
booleanmatch true if a positive match, false for a negative match
ErrorsNULL_ARGUMENT entryId is null
CompliancemandatoryThis method must be implemented.
MethodclearEntryIdTerms
Description

Clears the entry Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsEntryQuery
Description

Tests if an EntryQuery is available.

Returnboolean true if an entry query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetEntryQuery
Description

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

Returnosid.inventory.shipment.EntryQueryan entry query
ErrorsUNIMPLEMENTED supportsEntryQuery() is false
ComplianceoptionalThis method must be implemented if supportsEntryQuery() is true.
MethodmatchAnyEntry
Description

Matches shipments that have any entry.

Parametersbooleanmatch true to match shipments with any entry, false to match shipments with no entries
CompliancemandatoryThis method must be implemented.
MethodclearEntryTerms
Description

Clears the entry terms.

CompliancemandatoryThis method must be implemented.
MethodmatchWarehouseId
Description

Sets the warehouse Id for this query to match shipments 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 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.
MethodgetShipmentQueryRecord
Description

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

Parametersosid.type.TypeshipmentRecordTypea shipment record type
Returnosid.inventory.shipment.records.ShipmentQueryRecordthe shipment query record
ErrorsNULL_ARGUMENT shipmentRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(shipmentRecordType) is false
CompliancemandatoryThis method must be implemented.