public interface InventoryForm extends OsidObjectForm, OsidSubjugateableForm
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.
| Modifier and Type | Method and Description |
|---|---|
void |
clearDate()
Removes the date.
|
void |
clearQuantity()
Removes the quantity.
|
Metadata |
getDateMetadata()
Gets the metadata for the date.
|
InventoryFormRecord |
getInventoryFormRecord(Type inventoryRecordType)
Gets the
InventoryFormRecord corresponding to the given
inventory record Type. |
Metadata |
getQuantityMetadata()
Gets the metadata for the quantity.
|
void |
setDate(DateTime date)
Sets the date.
|
void |
setQuantity(java.math.BigDecimal quantity)
Sets the quantity.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentMetadata getDateMetadata()
mandatory - This method must be implemented. void setDate(DateTime date)
date - the new dateInvalidArgumentException - date is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - date is
null mandatory - This method must be implemented. void clearDate()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getQuantityMetadata()
mandatory - This method must be implemented. void setQuantity(java.math.BigDecimal quantity)
quantity - the new quantityInvalidArgumentException - quantity is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearQuantity()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. InventoryFormRecord getInventoryFormRecord(Type inventoryRecordType) throws OperationFailedException
InventoryFormRecord corresponding to the given
inventory record Type. inventoryRecordType - an inventory record typeNullArgumentException - inventoryRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(inventoryRecordType) is false
mandatory - This method must be implemented.