Interface InstructionForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidEnablerForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRelationshipForm, OsidRuleApplicatorForm, OsidRuleForm, OsidTemporalForm, Suppliable

public interface InstructionForm extends OsidRelationshipForm, OsidRuleApplicatorForm

This is the form for creating and updating Instructions. Like all OsidForms, various data elements may be set here for use in the create and update methods in the InstructionAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

  • Method Details

    • getMessageMetadata

      Metadata getMessageMetadata()
      Gets the metadata for the message.
      Returns:
      metadata for the message
      Compliance:
      mandatory - This method must be implemented.
    • setMessage

      void setMessage(DisplayText message)
      Sets the message.
      Parameters:
      message - the new message
      Throws:
      InvalidArgumentException - message is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - message is null
      Compliance:
      mandatory - This method must be implemented.
    • clearMessage

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

      Metadata getWarningMetadata()
      Gets the metadata for the warning flag.
      Returns:
      metadata for the warning flag
      Compliance:
      mandatory - This method must be implemented.
    • setWarning

      void setWarning(boolean warning)
      Sets the warning flag.
      Parameters:
      warning - the new warning flag
      Throws:
      InvalidArgumentException - warning is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearWarning

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

      Metadata getContinueOnFailMetadata()
      Gets the metadata for the continue-on-fail flag.
      Returns:
      metadata for the continue-on-fail flag
      Compliance:
      mandatory - This method must be implemented.
    • setContinueOnFail

      void setContinueOnFail(boolean cof)
      Sets the continue-on-fail flag.
      Parameters:
      cof - the new continue-on-fail flag
      Throws:
      InvalidArgumentException - cof is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearContinueOnFail

      void clearContinueOnFail()
      Removes the continue-on-fail flag.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getBreakOnSuccessMetadata

      Metadata getBreakOnSuccessMetadata()
      Gets the metadata for the break-on-success.
      Returns:
      metadata for the break-on-success
      Compliance:
      mandatory - This method must be implemented.
    • setBreakOnSuccess

      void setBreakOnSuccess(boolean cof)
      Sets the break-on-success flag.
      Parameters:
      cof - the new break-on-success flag
      Throws:
      InvalidArgumentException - cof is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearBreakOnSuccess

      void clearBreakOnSuccess()
      Removes the break-on-success flag.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getOrderMetadata

      Metadata getOrderMetadata()
      Gets the metadata for the order.
      Returns:
      metadata for the order
      Compliance:
      mandatory - This method must be implemented.
    • setOrder

      void setOrder(long order)
      Sets the processing order.
      Parameters:
      order - the new order
      Throws:
      InvalidArgumentException - order is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearOrder

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

      InstructionFormRecord getInstructionFormRecord(Type instructionRecordType) throws OperationFailedException, PermissionDeniedException
      Gets the InstructionFormRecord corresponding to the given instruction record Type.
      Parameters:
      instructionRecordType - an instruction record type
      Returns:
      the instruction form record
      Throws:
      NullArgumentException - instructionRecordType is null
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure occurred
      UnsupportedException - hasRecordType(instructionRecordType) is false
      Compliance:
      mandatory - This method must be implemented.