OSID Logo
OSID Specifications
inventory shipment package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.shipment.ShipmentSearchSession
Implementsosid.inventory.shipment.ShipmentQuerySession
Description

This session provides methods for searching among Shipment objects. The search query is constructed using the ShipmentQuery.

getShipmentsByQuery() is the basic search method and returns a list of Shipments. A more advanced search may be performed with getShipmentsBySearch(). It accepts a ShipmentSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getShipmentsBySearch() returns a ShipmentSearchResults that can be used to access the resulting ShipmentList or be used to perform a search within the result set through ShipmentSearch.

This session defines views that offer differing behaviors for searching.

  • federated warehouse view: searches include shipments in warehouses of which this warehouse is an ancestor in the warehouse hierarchy
  • isolated warehouse view: searches are restricted to shipments in this warehouse

Shipments may have a query record indicated by their respective record types. The query record is accessed via the ShipmentQuery.

MethodgetShipmentSearch
Description

Gets a shipment search.

Returnosid.inventory.shipment.ShipmentSearchthe shipment search
CompliancemandatoryThis method must be implemented.
MethodgetShipmentSearchOrder
Description

Gets a shipment search order. The ShipmentSearchOrder is supplied to a ShipmentSearch to specify the ordering of results.

Returnosid.inventory.shipment.ShipmentSearchOrderthe shipment search order
CompliancemandatoryThis method must be implemented.
MethodgetShipmentsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.inventory.shipment.ShipmentQueryshipmentQuerythe shipment query
osid.inventory.shipment.ShipmentSearchshipmentSearchthe shipment search
Returnosid.inventory.shipment.ShipmentSearchResultsthe shipment search results
ErrorsNULL_ARGUMENT shipmentQuery or shipmentSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED shipmentQuery or shipmentSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetShipmentQueryFromInspector
Description

Gets a shipment query from an inspector. The inspector is available from a ShipmentSearchResults.

Parametersosid.inventory.shipment.ShipmentQueryInspectorshipmentQueryInspectora shipment query inspector
Returnosid.inventory.shipment.ShipmentQuerythe shipment query
ErrorsNULL_ARGUMENT shipmentQueryInspector is null
UNSUPPORTED shipmentQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.