public interface OrderForm extends OsidObjectForm, OsidAggregateableForm
This is the form for creating and updating Order
objects. Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
OrderAdminSession.
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 |
clearCustomer()
Clears the customer.
|
Metadata |
getClosedMetadata()
Gets the metadata for the closed status.
|
Metadata |
getCustomerMetadata()
Gets the metadata for a customer.
|
OrderFormRecord |
getOrderFormRecord(Type orderRecordType)
Gets the
OrderFormRecord corresponding to the given
order record Type. |
void |
setClosed(boolean closed)
Sets the closed status.
|
void |
setCustomer(Id resourceId)
Sets the customer.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getCustomerMetadata()
mandatory
- This method must be implemented. void setCustomer(Id resourceId)
resourceId
- the new addressInvalidArgumentException
- resourceId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- resourceId
is
null
mandatory
- This method must be implemented. void clearCustomer()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getClosedMetadata()
mandatory
- This method must be implemented. void setClosed(boolean closed)
closed
- the new closed statusInvalidArgumentException
- closed
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. OrderFormRecord getOrderFormRecord(Type orderRecordType) throws OperationFailedException
OrderFormRecord
corresponding to the given
order record Type.
orderRecordType
- the order record typeNullArgumentException
- orderRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(orderRecordType)
is false
mandatory
- This method must be implemented.