Interface CourseRegistration

All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Subjugateable, Temporal

public interface CourseRegistration extends OsidRelationship, Subjugateable

A CourseRegistration is an OsidRelationship between a student and a CourseOffering.

  • Method Details

    • getCourseOfferingId

      Id getCourseOfferingId()
      Gets the course offering Id associated with this registration.
      Returns:
      the course offering Id
      Compliance:
      mandatory - This method must be implemented.
    • getCourseOffering

      CourseOffering getCourseOffering() throws OperationFailedException
      Gets the course offering associated with this registration.
      Returns:
      the course offering
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getStudentId

      Id getStudentId()
      Gets the Id of the student Resource.
      Returns:
      the Student Id
      Compliance:
      mandatory - This method must be implemented.
    • getStudent

      Resource getStudent() throws OperationFailedException
      Gets the student Resource.
      Returns:
      the student
      Throws:
      OperationFailedException - unable to complete request
      Compliance:
      mandatory - This method must be implemented.
    • getCourseRegistrationRecord

      CourseRegistrationRecord getCourseRegistrationRecord(Type courseRegistrationRecordType) throws OperationFailedException
      Gets the course registration record corresponding to the given CourseRegistr ation record Type. This method ie used to retrieve an object implementing the requested record. The courseRegistrationRecor dType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(courseRegistrationRecordT ype) is true.
      Parameters:
      courseRegistrationRecordType - the type of course registration record to retrieve
      Returns:
      the course registration record
      Throws:
      NullArgumentException - courseRegistrationRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(courseRegistrationRecordType) is false
      Compliance:
      mandatory - This method must be implemented.