OSID Logo
OSID Specifications
inventory package
Version 3.0.0
Release Candidate Preview
Interfaceosid.inventory.InventoryForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Description

This is the form for creating and updating Inventories. Like all OsidForm objects, 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.Metadatametadata for the date
CompliancemandatoryThis method must be implemented.
MethodsetDate
Description

Sets the date.

Parametersosid.calendaring.DateTimedatethe new date
ErrorsINVALID_ARGUMENT date is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT date is null
CompliancemandatoryThis method must be implemented.
MethodclearDate
Description

Removes the date.

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

Gets the metadata for the quantity.

Returnosid.Metadatametadata for the quantity
CompliancemandatoryThis method must be implemented.
MethodsetQuantity
Description

Sets the quantity.

Parametersdecimalquantitythe new quantity
ErrorsINVALID_ARGUMENT quantity is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearQuantity
Description

Removes the quantity.

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

Gets the InventoryFormRecord corresponding to the given inventory record Type.

Parametersosid.type.TypeinventoryRecordTypean inventory record type
Returnosid.inventory.records.InventoryFormRecordthe inventory form record
ErrorsNULL_ARGUMENT inventoryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(inventoryRecordType) is false
CompliancemandatoryThis method must be implemented.