Interface CourseEntryForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidRelationshipForm, OsidTemporalForm, Suppliable
All Known Subinterfaces:
CourseEntryBatchForm

public interface CourseEntryForm extends OsidRelationshipForm

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

  • Method Details

    • getTermMetadata

      Metadata getTermMetadata()
      Gets the metadata for the term.
      Returns:
      metadata for the term
      Compliance:
      mandatory - This method must be implemented.
    • setTerm

      void setTerm(Id termId)
      Sets the term.
      Parameters:
      termId - the new term
      Throws:
      InvalidArgumentException - termId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - termId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearTerm

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

      Metadata getIsRegistrationKnownMetadata()
      Gets the metadata for the is registration known flag.
      Returns:
      metadata for the is registration known flag
      Compliance:
      mandatory - This method must be implemented.
    • setIsRegistrationKnown

      void setIsRegistrationKnown(boolean isRegistrationKnown)
      Sets the is registration known flag.
      Parameters:
      isRegistrationKnown - the new is registration known flag
      Throws:
      InvalidArgumentException - isRegistrationKnown is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearIsRegistrationKnown

      void clearIsRegistrationKnown()
      Clears the is registration known flag.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCourseBeginDateMetadata

      Metadata getCourseBeginDateMetadata()
      Gets the metadata for the course begin date.
      Returns:
      metadata for the course begin date
      Compliance:
      mandatory - This method must be implemented.
    • setCourseBeginDate

      void setCourseBeginDate(DateTime courseBeginDate)
      Sets the course begin date.
      Parameters:
      courseBeginDate - the new course begin date
      Throws:
      InvalidArgumentException - courseBeginDate is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - courseBeginDate is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCourseBeginDate

      void clearCourseBeginDate()
      Clears the course begin date.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCourseEndDateMetadata

      Metadata getCourseEndDateMetadata()
      Gets the metadata for the course end date.
      Returns:
      metadata for the course end date
      Compliance:
      mandatory - This method must be implemented.
    • setCourseEndDate

      void setCourseEndDate(DateTime courseEndDate)
      Sets the course end date.
      Parameters:
      courseEndDate - the new course end date
      Throws:
      InvalidArgumentException - courseEndDate is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - courseEndDate is null
      Compliance:
      mandatory - This method must be implemented.
    • clearCourseEndDate

      void clearCourseEndDate()
      Clears the course end date.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCompleteMetadata

      Metadata getCompleteMetadata()
      Gets the metadata for the completion flag.
      Returns:
      metadata for the complete flag
      Compliance:
      mandatory - This method must be implemented.
    • setComplete

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

      void clearComplete()
      Clears the complete flag.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCreditScaleMetadata

      Metadata getCreditScaleMetadata()
      Gets the metadata for the credit scale.
      Returns:
      metadata for the credit scale
      Compliance:
      mandatory - This method must be implemented.
    • setCreditScale

      void setCreditScale(Id gradeSystemId)
      Sets the credit scale.
      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.
    • clearCreditScale

      void clearCreditScale()
      Clears the credit scale.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCreditsEarnedMetadata

      Metadata getCreditsEarnedMetadata()
      Gets the metadata for the credits earned.
      Returns:
      metadata for the credits earned
      Compliance:
      mandatory - This method must be implemented.
    • setCreditsEarned

      void setCreditsEarned(BigDecimal credits)
      Sets the credits earned.
      Parameters:
      credits - the new credits
      Throws:
      InvalidArgumentException - credits is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearCreditsEarned

      void clearCreditsEarned()
      Clears the credits earned.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getGradeMetadata

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

      void setGrade(Id gradeId)
      Sets the 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.
    • clearGrade

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

      Metadata getScoreScaleMetadata()
      Gets the metadata for the score scale.
      Returns:
      metadata for the score scale
      Compliance:
      mandatory - This method must be implemented.
    • setScoreScale

      void setScoreScale(Id gradeSystemId)
      Sets the score scale.
      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.
    • clearScoreScale

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

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

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

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

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