OSID Logo
OSID Specifications
inventory shipment batch package
Version 3.1.0
Interfaceosid.inventory.shipment.batch.ShipmentBatchAdminSession
Implementsosid.inventory.shipment.ShipmentAdminSession
Used Byosid.inventory.shipment.batch.InventoryShipmentBatchManager
osid.inventory.shipment.batch.InventoryShipmentBatchProxyManager
Description

This session creates, updates, and deletes Shipments in bulk. The data for create and update is provided by the consumer via the form object. OsidForms are requested for each create or update and may not be reused.

Create and update operations differ in their usage. To create a Shipment, a ShipmentForm is requested using getShipmentFormsForCreate() specifying the desired record Types or none if no record Types are needed. Each of the returned ShipmentForms will indicate that it is to be used with a create operation and can be used to examine metdata or validate data prior to creation. Once a ShipmentForm is submiited to a create operation, it cannot be reused with another create operation unless the first operation was unsuccessful. Each ShipmentForm corresponds to an attempted transaction.

The ShipmentForms returned from getShipmentFormsForCreate() may be linked to the originating request through the peer Ids of the ShipmentForm. In the case where there may be duplicates, any ShipmentForm of the same peer Ids may be used for a create operation.

Once a batch of ShipmentForms are submitted for create, a CreateResponse is returned for each ShipmentForm, although the ordering is not defined. Only errors that pertain to the entire create operation are returned from createShipments(), errors specific to an individual ShipmentForm are indicated in the corresponding CreateResponse. CreateResponses may be linked to the originating ShipmentForm through the ShipmentForm Id.

For updates, ShipmentForms are requested to the Shipment Id that is to be updated using getShipmentFormsForUpdate() where the reference Id in the ShipmentForm may be used to link the request. Similarly, the ShipmentForm has metadata about the data that can be updated and it can perform validation before submitting the update. The ShipmentForm can only be used once for a successful update and cannot be reused.

Once a batch of ShipmentForms are submitted for update, an UpdateResponse is returned for each ShipmentForm, although the ordering is not defined. Only errors that pertain to the entire update operation are returned from updateShipments(), errors specific to an individual ShipmentForm are indicated in the corresponding UpdateResponse. UpdateResponses may be linked to the originating ShipmentForm through the ShipmentForm Id.

The delete operations delete Shipments in bulk. To unmap a Shipment from the current Warehouse, the ShipmentWarehouseAssignmentSession should be used. These delete operations attempt to remove the Shipment itself thus removing it from all known Warehouse catalogs. Bulk delete operations return the results in DeleteResponses.

MethodgetShipmentFormsForCreate
Description

Gets the shipment forms for creating a bunch of new shipments.

Parameterscardinalnumber the number of forms to retrieve
osid.type.Type[]shipmentRecordTypes array of shipment record types to be included in each create operation or an empty list if none
Returnosid.inventory.shipment.batch.ShipmentBatchFormList the shipment forms
ErrorsNULL_ARGUMENT shipmentRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to request forms with given record types
Compliancemandatory This method must be implemented.
MethodcreateShipments
Description

Creates a new set of Shipments. This method returns an error if the entire operation fails. Otherwise, the status of an individual create operation is indicated in the BatchCreateResponse.

Parametersosid.inventory.shipment.batch.ShipmentBatchFormListshipmentForms the shipment forms
Returnosid.transaction.batch.CreateResponseList the create responses
ErrorsNULL_ARGUMENT shipmentForms is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetShipmentFormsForUpdate
Description

Gets the shipment forms for updating an existing set of shipments. A new shipment form should be requested for each update transaction.

Parametersosid.id.IdListshipmentIds the Ids of the Shipment
Returnosid.inventory.shipment.batch.ShipmentBatchFormList the shipment form
ErrorsNOT_FOUND a shipmentId is not found
NULL_ARGUMENT shipmentIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateShipments
Description

Updates existing shipments. This method returns an error if the entire operation fails. Otherwise, the status of an individual update operation is indicated in the BatchCreateResponse.

Parametersosid.inventory.shipment.batch.ShipmentBatchFormListshipmentForms the form containing the elements to be updated
Returnosid.transaction.batch.UpdateResponseList the update responses
ErrorsNULL_ARGUMENT shipmentForms is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethoddeleteAllShipments
Description

Deletes all Shipments in this Warehouse.

Returnosid.transaction.batch.DeleteResponseList the delete responses
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethoddeleteShipments
Description

Deletes shipments for the given Ids.

Parametersosid.id.IdListshipmentIds the Ids of the shipments to delete
Returnosid.transaction.batch.DeleteResponseList the delete responses
ErrorsNULL_ARGUMENT shipmentIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodaliasShipments
Description

Adds an Id to a Shipment for the purpose of creating compatibility. The primary Id of the Shipment is determined by the provider. The new Id is an alias to the primary Id. If the alias is a pointer to another shipment, it is reassigned to the given shipment Id.

Parametersosid.transaction.batch.AliasRequestListaliasRequests the alias requests
Returnosid.transaction.batch.AliasResponseList the alias responses
ErrorsNULL_ARGUMENT aliasRequests is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetEntryFormsForCreate
Description

Gets the entry forms for creating a bunch of new entries. A form is returned for each supplied shipment.

Parametersosid.id.IdListshipmentIds a list of shipment Ids
osid.type.Type[]shipmentRecordTypes array of shipment record types to be included in each create operation or an empty list if none
Returnosid.inventory.shipment.batch.EntryBatchFormList the entry forms
ErrorsNOT_FOUND a shipmentId is not found
NULL_ARGUMENT shipmentIds or shipmentRecordTypes is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED unable to request forms with given record types
Compliancemandatory This method must be implemented.
MethodcreateEntries
Description

Creates a new set of Entries. This method returns an error if the entire operation fails. Otherwise, the status of an individual create operation is indicated in the BatchCreateResponse.

Parametersosid.inventory.shipment.batch.EntryBatchFormListentryForms the entry forms
Returnosid.transaction.batch.CreateResponseList the create responses
ErrorsNULL_ARGUMENT entryForms is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodgetEntryFormsForUpdate
Description

Gets the entry forms for updating an existing set of entrys. A new entry form should be requested for each update transaction.

Parametersosid.id.IdListentryIds the Ids of the Entry
Returnosid.inventory.shipment.batch.EntryBatchFormList the entry form
ErrorsNOT_FOUND an entryId is not found
NULL_ARGUMENT entryIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodupdateEntries
Description

Updates existing entries. This method returns an error if the entire operation fails. Otherwise, the status of an individual update operation is indicated in the BatchCreateResponse.

Parametersosid.inventory.shipment.batch.EntryBatchFormListentryForms the form containing the elements to be updated
Returnosid.transaction.batch.UpdateResponseList the update responses
ErrorsNULL_ARGUMENT entryForms is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethoddeleteAllEntries
Description

Deletes all Entries in this Warehouse.

Returnosid.transaction.batch.DeleteResponseList the delete responses
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethoddeleteEntries
Description

Deletes entries for the given Ids.

Parametersosid.id.IdListentryIds the Ids of the entries to delete
Returnosid.transaction.batch.DeleteResponseList the delete responses
ErrorsNULL_ARGUMENT entryIds is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethoddeleteEntriesForShipment
Description

Deletes entries for the given shipment.

Parametersosid.id.IdshipmentId the Ids of the shipment
Returnosid.transaction.batch.DeleteResponseList the delete responses
ErrorsNULL_ARGUMENT shipmentId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodaliasEntries
Description

Adds an Id to an Entry for the purpose of creating compatibility. The primary Id of the Entry is determined by the provider. The new Id is an alias to the primary Id. If the alias is a pointer to another entry, it is reassigned to the given entry Id.

Parametersosid.transaction.batch.AliasRequestListaliasRequests the alias requests
Returnosid.transaction.batch.AliasResponseList the alias responses
ErrorsNULL_ARGUMENT aliasRequests is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.