Interface AssessmentRequirementForm

All Superinterfaces:
Extensible, Identifiable, OsidAggregateableForm, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, Suppliable

public interface AssessmentRequirementForm extends OsidRuleForm, OsidAggregateableForm

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

  • Method Details

    • getTimeframeMetadata

      Metadata getTimeframeMetadata()
      Gets the metadata for the timeframe.
      Returns:
      metadata for the timeframe
      Compliance:
      mandatory - This method must be implemented.
    • setTimeframe

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

      void clearTimeframe()
      Clears the timeframe.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getMinimumGradeMetadata

      Metadata getMinimumGradeMetadata()
      Gets the metadata for the minimum grade.
      Returns:
      metadata for the minimum grade
      Compliance:
      mandatory - This method must be implemented.
    • setMinimumGrade

      void setMinimumGrade(Id gradeId)
      Sets the minimum grade.
      Parameters:
      gradeId - the new grade
      Throws:
      InvalidArgumentException - gradeId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - gradeId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearMinimumGrade

      void clearMinimumGrade()
      Clears the minimum grade.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getMinimumScoreSystemMetadata

      Metadata getMinimumScoreSystemMetadata()
      Gets the metadata for the minimum score system.
      Returns:
      metadata for the minimum score system
      Compliance:
      mandatory - This method must be implemented.
    • setMinimumScoreSystem

      void setMinimumScoreSystem(Id gradeSystemId)
      Sets the minimum score system.
      Parameters:
      gradeSystemId - the new grade system
      Throws:
      InvalidArgumentException - gradeSystemId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - gradeSystemId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearMinimumScoreSystem

      void clearMinimumScoreSystem()
      Clears the minimum score system.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getMinimumScoreMetadata

      Metadata getMinimumScoreMetadata()
      Gets the metadata for the minimum score.
      Returns:
      metadata for the minimum score
      Compliance:
      mandatory - This method must be implemented.
    • setMinimumScore

      void setMinimumScore(BigDecimal score)
      Sets the minimum score.
      Parameters:
      score - the new minimum score
      Throws:
      InvalidArgumentException - score is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearMinimumScore

      void clearMinimumScore()
      Clears the minimum score.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getAssessmentRequirementFormRecord

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