Interface SettingForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, Suppliable
All Known Subinterfaces:
SettingBatchForm

public interface SettingForm extends OsidObjectForm, OsidSubjugateableForm

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

  • Method Details

    • getOnMetadata

      Metadata getOnMetadata()
      Gets the metadata for the on status.
      Returns:
      metadata for the on status
      Compliance:
      mandatory - This method must be implemented.
    • setOn

      void setOn(boolean on)
      Sets the on status.
      Parameters:
      on - the new on status
      Throws:
      InvalidArgumentException - on is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearOn

      void clearOn()
      Removes the on status.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getOffMetadata

      Metadata getOffMetadata()
      Gets the metadata for the off status.
      Returns:
      metadata for the off status
      Compliance:
      mandatory - This method must be implemented.
    • setOff

      void setOff(boolean off)
      Sets the off status.
      Parameters:
      off - the new off status
      Throws:
      InvalidArgumentException - off is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearOff

      void clearOff()
      Removes the off status.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getVariablePercentageMetadata

      Metadata getVariablePercentageMetadata()
      Gets the metadata for the percentage amount.
      Returns:
      metadata for the percentage amount
      Compliance:
      mandatory - This method must be implemented.
    • setVariablePercentage

      void setVariablePercentage(BigDecimal amount)
      Sets the percentage amount.
      Parameters:
      amount - the new percentage amount
      Throws:
      InvalidArgumentException - amount is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - amount is null
      Compliance:
      mandatory - This method must be implemented.
    • clearVariablePercentage

      void clearVariablePercentage()
      Removes the percentage amount.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getVariableAmountMetadata

      Metadata getVariableAmountMetadata()
      Gets the metadata for the variable amount.
      Returns:
      metadata for the variable amount
      Compliance:
      mandatory - This method must be implemented.
    • setVariableAmount

      void setVariableAmount(BigDecimal amount)
      Sets the variable amount.
      Parameters:
      amount - the new variable amount
      Throws:
      InvalidArgumentException - amount is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - amount is null
      Compliance:
      mandatory - This method must be implemented.
    • clearVariableAmount

      void clearVariableAmount()
      Removes the variable amount.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getDiscreetMetadata

      Metadata getDiscreetMetadata()
      Gets the metadata for the state.
      Returns:
      metadata for the state
      Compliance:
      mandatory - This method must be implemented.
    • setDiscreetState

      void setDiscreetState(Id stateId)
      Sets the state.
      Parameters:
      stateId - the new state
      Throws:
      InvalidArgumentException - stateId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - stateId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearDiscreetState

      void clearDiscreetState()
      Removes the discreet state.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getRampRateMetadata

      Metadata getRampRateMetadata()
      Gets the metadata for the ramp rate.
      Returns:
      metadata for the ramp rate
      Compliance:
      mandatory - This method must be implemented.
    • setRampRate

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

      void clearRampRate()
      Removes the ramp rate.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getSettingFormRecord

      SettingFormRecord getSettingFormRecord(Type settingRecordType) throws OperationFailedException
      Gets the SettingFormRecord corresponding to the given setting record Type .
      Parameters:
      settingRecordType - a setting record type
      Returns:
      the setting form record
      Throws:
      NullArgumentException - settingRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(settingRecordType) is false
      Compliance:
      mandatory - This method must be implemented.