public interface ActionForm extends OsidRuleForm, OsidSubjugateableForm
This is the form for creating and updating actions. Like
all OsidForm objects, various data elements may be set here
for use in the create and update methods in the
ActionGroupAdminSession. 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 |
clearBlocking()
Removes the blocking flag.
|
void |
clearDelay()
Removes the delay.
|
void |
clearNextActionGroup()
Removes the next action group.
|
void |
clearScene()
Removes the scene.
|
void |
clearSetting()
Removes the setting.
|
ActionFormRecord |
getActionFormRecord(Type actionRecordType)
Gets the
ActionFormRecord corresponding to the given
action record Type. |
Metadata |
getBlockingMetadata()
Gets the metadata for the blocking flag.
|
Metadata |
getDelayMetadata()
Gets the metadata for the delay.
|
Metadata |
getNextActionGroupMetadata()
Gets the metadata for the action group to be executed.
|
Metadata |
getSceneMetadata()
Gets the metadata for the scene.
|
Metadata |
getSettingMetadata()
Gets the metadata for the setting.
|
void |
setBlocking(boolean blocking)
Sets the blocking flag.
|
void |
setDelay(Duration delay)
Sets the delay.
|
void |
setNextActionGroup(Id actionGroupId)
Sets the next action group.
|
void |
setScene(Id sceneId)
Sets the scene.
|
void |
setSetting(Id settingId)
Sets the setting.
|
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 getDelayMetadata()
mandatory - This method must be implemented. void setDelay(Duration delay)
delay - the new delayInvalidArgumentException - delay is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - delay is
null mandatory - This method must be implemented. void clearDelay()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getBlockingMetadata()
mandatory - This method must be implemented. void setBlocking(boolean blocking)
blocking - true if blocking, false
if unblockingInvalidArgumentException - blocking is
invalidNoAccessException - Metadata.isReadOnly()
is true mandatory - This method must be implemented. void clearBlocking()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getNextActionGroupMetadata()
mandatory - This method must be implemented. void setNextActionGroup(Id actionGroupId)
actionGroupId - the new action groupInvalidArgumentException - actionGroupId
is invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - actionGroupId is
null mandatory - This method must be implemented. void clearNextActionGroup()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getSceneMetadata()
mandatory - This method must be implemented. void setScene(Id sceneId)
sceneId - the new sceneInvalidArgumentException - sceneId is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - sceneId is
null mandatory - This method must be implemented. void clearScene()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. Metadata getSettingMetadata()
mandatory - This method must be implemented. void setSetting(Id settingId)
settingId - the new settingInvalidArgumentException - settingId is
invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - settingId is
null mandatory - This method must be implemented. void clearSetting()
NoAccessException - Metadata.isRequired()
is true or Metadata.isReadOnly()
is true mandatory - This method must be implemented. ActionFormRecord getActionFormRecord(Type actionRecordType) throws OperationFailedException
ActionFormRecord corresponding to the given
action record Type. actionRecordType - an action record typeNullArgumentException - actionRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(actionRecordType) is false
mandatory - This method must be implemented.