public interface TodoProducerForm extends OsidRuleForm
This is the form for creating and updating TodoProducers.
Like all OsidForm objects, various data elements
may be set here for use in the create and update methods in the
TodoProducerAdminSession. 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 |
clearCreationRule()
Clears the creation rule flag.
|
void |
clearCyclicEvent()
Clears the cyclic event.
|
void |
clearStock()
Clears the stock.
|
void |
clearStockLevel()
Clears the stock level.
|
Metadata |
getCreationRuleMetadata()
Gets the metadata for a creation rule flag.
|
Metadata |
getCyclicEventMetadata()
Gets the metadata for a cyclic event.
|
Metadata |
getStockLevelMetadata()
Gets the metadata for the stock level.
|
Metadata |
getStockMetadata()
Gets the metadata for a cyclic event.
|
TodoProducerFormRecord |
getTodoProducerFormRecord(Type todoProducerRecordType)
Gets the
TodoProducerFormRecord corresponding to the
given todo producer record Type. |
void |
setCreationRule(boolean creation)
Sets the cyclic event.
|
void |
setCyclicEvent(Id cyclicEventId)
Sets the cyclic event.
|
void |
setStock(Id stockId)
Sets the stock.
|
void |
setStockLevel(long level)
Sets the stock level.
|
clearRule, getRuleMetadata, setRuleclearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledMetadata getCreationRuleMetadata()
mandatory - This method must be implemented. void setCreationRule(boolean creation)
creation - the new creationr ule flagInvalidArgumentException - creation is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearCreationRule()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getCyclicEventMetadata()
mandatory - This method must be implemented. void setCyclicEvent(Id cyclicEventId)
cyclicEventId - the new cyclic eventInvalidArgumentException - cyclicEventId
is invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - cyclicEventId is
null mandatory - This method must be implemented. void clearCyclicEvent()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getStockMetadata()
mandatory - This method must be implemented. void setStock(Id stockId)
stockId - the new stockInvalidArgumentException - stockId is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - stockId is
null mandatory - This method must be implemented. void clearStock()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getStockLevelMetadata()
mandatory - This method must be implemented. void setStockLevel(long level)
level - the new stock levelInvalidArgumentException - level is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearStockLevel()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. TodoProducerFormRecord getTodoProducerFormRecord(Type todoProducerRecordType) throws OperationFailedException
TodoProducerFormRecord corresponding to the
given todo producer record Type. todoProducerRecordType - a todo producer record typeNullArgumentException - todoProducerRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(todoProducerRecordType) is false
mandatory - This method must be implemented.