OSID Logo
OSID Specifications
inventory shipment package
Version 3.1.0
Interfaceosid.inventory.shipment.ShipmentSearchSession
Implementsosid.inventory.shipment.ShipmentQuerySession
Used Byosid.inventory.shipment.InventoryShipmentManager
osid.inventory.shipment.InventoryShipmentProxyManager
Description

This session provides methods for searching among Shipments. 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.ShipmentSearch the shipment search
Compliancemandatory This 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.ShipmentSearchOrder the shipment search order
Compliancemandatory This method must be implemented.
MethodgetShipmentsBySearch
Description

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

Parametersosid.inventory.shipment.ShipmentQueryshipmentQuery the shipment query
osid.inventory.shipment.ShipmentSearchshipmentSearch the shipment search
Returnosid.inventory.shipment.ShipmentSearchResults the shipment search results
ErrorsNULL_ARGUMENT shipmentQuery or shipmentSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED shipmentQuery or shipmentSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetShipmentQueryFromInspector
Description

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

Parametersosid.inventory.shipment.ShipmentQueryInspectorshipmentQueryInspector a shipment query inspector
Returnosid.inventory.shipment.ShipmentQuery the shipment query
ErrorsNULL_ARGUMENT shipmentQueryInspector is null
UNSUPPORTED shipmentQueryInspector is not of this service
Compliancemandatory This method must be implemented.