OSID Logo
OSID Specifications
inventory shipment package
Version 3.1.0
Interfaceosid.inventory.shipment.ShipmentForm
Implementsosid.OsidObjectForm
osid.OsidAggregateableForm
Implemented Byosid.inventory.shipment.batch.ShipmentBatchForm
Used Byosid.inventory.shipment.ShipmentAdminSession
Description

This is the form for creating and updating Shipments. Like all OsidForms, various data elements may be set here for use in the create and update methods in the ShipmentAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

MethodgetSourceMetadata
Description

Gets the metadata for a source.

Returnosid.Metadata metadata for the source
Compliancemandatory This method must be implemented.
MethodsetSource
Description

Sets the source.

Parametersosid.id.IdresourceId the new source
ErrorsINVALID_ARGUMENT resourceId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT resourceId is null
Compliancemandatory This method must be implemented.
MethodclearSource
Description

Removes the source.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetOrderMetadata
Description

Gets the metadata for an odrer.

Returnosid.Metadata metadata for the order
Compliancemandatory This method must be implemented.
MethodsetOrder
Description

Sets the order.

Parametersosid.id.IdorderId the new order
ErrorsINVALID_ARGUMENT orderId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT orderId is null
Compliancemandatory This method must be implemented.
MethodclearOrder
Description

Removes the order.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetDateMetadata
Description

Gets the metadata for the shipment date.

Returnosid.Metadata metadata for the date
Compliancemandatory This method must be implemented.
MethodsetDate
Description

Sets the date.

Parametersosid.calendaring.DateTimedate the new date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT date is null
Compliancemandatory This method must be implemented.
MethodclearDate
Description

Clears the date.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetShipmentFormRecord
Description

Gets the ShipmentFormRecord corresponding to the given shipment record Type.

Parametersosid.type.TypeshipmentRecordType a shipment record type
Returnosid.inventory.shipment.records.ShipmentFormRecord the shipment form record
ErrorsNULL_ARGUMENT shipmentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(shipmentRecordType) is false
Compliancemandatory This method must be implemented.