Interface ActionForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, OsidSubjugateableForm, Suppliable
All Known Subinterfaces:
ActionBatchForm

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.

  • Method Details

    • getDelayMetadata

      Metadata getDelayMetadata()
      Gets the metadata for the delay.
      Returns:
      metadata for the delay
      Compliance:
      mandatory - This method must be implemented.
    • setDelay

      void setDelay(Duration delay)
      Sets the delay.
      Parameters:
      delay - the new delay
      Throws:
      InvalidArgumentException - delay is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - delay is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDelay

      void clearDelay()
      Removes the delay.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getBlockingMetadata

      Metadata getBlockingMetadata()
      Gets the metadata for the blocking flag.
      Returns:
      metadata for the blocking flag
      Compliance:
      mandatory - This method must be implemented.
    • setBlocking

      void setBlocking(boolean blocking)
      Sets the blocking flag.
      Parameters:
      blocking - true if blocking, false if unblocking
      Throws:
      InvalidArgumentException - blocking is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearBlocking

      void clearBlocking()
      Removes the blocking flag.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getNextActionGroupMetadata

      Metadata getNextActionGroupMetadata()
      Gets the metadata for the action group to be executed.
      Returns:
      metadata for the action group
      Compliance:
      mandatory - This method must be implemented.
    • setNextActionGroup

      void setNextActionGroup(Id actionGroupId)
      Sets the next action group.
      Parameters:
      actionGroupId - the new action group
      Throws:
      InvalidArgumentException - actionGroupId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - actionGroupId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearNextActionGroup

      void clearNextActionGroup()
      Removes the next action group.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getSceneMetadata

      Metadata getSceneMetadata()
      Gets the metadata for the scene.
      Returns:
      metadata for the scene
      Compliance:
      mandatory - This method must be implemented.
    • setScene

      void setScene(Id sceneId)
      Sets the scene.
      Parameters:
      sceneId - the new scene
      Throws:
      InvalidArgumentException - sceneId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - sceneId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearScene

      void clearScene()
      Removes the scene.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getSettingMetadata

      Metadata getSettingMetadata()
      Gets the metadata for the setting.
      Returns:
      metadata for the setting
      Compliance:
      mandatory - This method must be implemented.
    • setSetting

      void setSetting(Id settingId)
      Sets the setting.
      Parameters:
      settingId - the new setting
      Throws:
      InvalidArgumentException - settingId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - settingId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearSetting

      void clearSetting()
      Removes the setting.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getActionFormRecord

      ActionFormRecord getActionFormRecord(Type actionRecordType) throws OperationFailedException
      Gets the ActionFormRecord corresponding to the given action record Type .
      Parameters:
      actionRecordType - an action record type
      Returns:
      the action form record
      Throws:
      NullArgumentException - actionRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(actionRecordType) is false
      Compliance:
      mandatory - This method must be implemented.