OSID Logo
OSID Specifications
inventory package
Version 3.1.0
Interfaceosid.inventory.InventoryForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Implemented Byosid.inventory.batch.InventoryBatchForm
Used Byosid.inventory.InventoryAdminSession
Description

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

MethodgetDateMetadata
Description

Gets the metadata for the 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

Removes the date.

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

Gets the metadata for the quantity.

Returnosid.Metadata metadata for the quantity
Compliancemandatory This method must be implemented.
MethodsetQuantity
Description

Sets the quantity.

Parametersdecimalquantity the new quantity
ErrorsINVALID_ARGUMENT quantity is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearQuantity
Description

Removes the quantity.

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

Gets the InventoryFormRecord corresponding to the given inventory record Type.

Parametersosid.type.TypeinventoryRecordType an inventory record type
Returnosid.inventory.records.InventoryFormRecord the inventory form record
ErrorsNULL_ARGUMENT inventoryRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(inventoryRecordType) is false
Compliancemandatory This method must be implemented.