Interface CourseEntry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A CourseEntry represents an academic record entry for a course.
The fields in the CourseEntry are specific to a Term .
-
Method Summary
Modifier and TypeMethodDescriptionGets theCourse.Gets the first date of theCourse.Gets the last date of theCourse.getCourseEntryRecord(Type courseEntryRecordType) Gets the course entry record corresponding to the givenCourseEntryrecordType.Gets theIdof theCourse.Gets theGradeSystem.Gets theIdof theGradeSystem.Gets the number of credits earned in this course.getGrade()Gets theGrade.Gets theIdof theGrade.Gets theIdsof theRegistrations.Gets theRegistrations.getScore()Gets the cumulative score.Gets theGradeSystem.Gets theIdof theGradeSystem.Gets theStudent.Gets theIdof theStudent.getTerm()Gets theTerm.Gets theIdof theTerm.booleanhasGrade()Tests if a grade is available.booleanTests ifRegistrationsare available.booleanhasScore()Tests if a score is available.booleanTests if the course has been completed.booleanTests if the registration dates for this course entry are known.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getStudentId
Id getStudentId()Gets theIdof theStudent.- Returns:
- the student
Id - Compliance:
mandatory- This method must be implemented.
-
getStudent
Gets theStudent.- Returns:
- the student
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCourseId
Id getCourseId()Gets theIdof theCourse.- Returns:
- the course
Id - Compliance:
mandatory- This method must be implemented.
-
getCourse
Gets theCourse.- Returns:
- the course
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTermId
Id getTermId()Gets theIdof theTerm.- Returns:
- the term
Id - Compliance:
mandatory- This method must be implemented.
-
getTerm
Gets theTerm.- Returns:
- the term
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isRegistrationKnown
boolean isRegistrationKnown()Tests if the registration dates for this course entry are known.- Returns:
trueif the course begin and end dates are known,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCourseBeginDate
DateTime getCourseBeginDate()Gets the first date of theCourse.- Returns:
- the course begin date
- Throws:
IllegalStateException-isRegistrationKnown()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCourseEndDate
DateTime getCourseEndDate()Gets the last date of theCourse.- Returns:
- the course end date
- Throws:
IllegalStateException-isRegistrationKnown()isfalse- Compliance:
mandatory- This method must be implemented.
-
isComplete
boolean isComplete()Tests if the course has been completed.- Returns:
trueif the course has been completed,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCreditScaleId
Id getCreditScaleId()Gets theIdof theGradeSystem.- Returns:
- the grade system
Id - Compliance:
mandatory- This method must be implemented.
-
getCreditScale
Gets theGradeSystem.- Returns:
- the grade system
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCreditsEarned
BigDecimal getCreditsEarned()Gets the number of credits earned in this course.- Returns:
- the credits earned
- Compliance:
mandatory- This method must be implemented.
-
hasGrade
boolean hasGrade()Tests if a grade is available.- Returns:
trueif a grade is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradeId
Id getGradeId()Gets theIdof theGrade.- Returns:
- the grade
Id - Throws:
IllegalStateException-hasGrade()isfalse- Compliance:
mandatory- This method must be implemented.
-
getGrade
Gets theGrade.- Returns:
- the grade
- Throws:
IllegalStateException-hasGrade()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasScore
boolean hasScore()Tests if a score is available.- Returns:
trueif a score is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getScoreScaleId
Id getScoreScaleId()Gets theIdof theGradeSystem.- Returns:
- the grade system
Id - Throws:
IllegalStateException-hasScore()isfalse- Compliance:
mandatory- This method must be implemented.
-
getScoreScale
Gets theGradeSystem.- Returns:
- the grade system
- Throws:
IllegalStateException-hasScore()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getScore
BigDecimal getScore()Gets the cumulative score.- Returns:
- the score
- Throws:
IllegalStateException-hasScore()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasRegistrations
boolean hasRegistrations()Tests ifRegistrationsare available.- Returns:
trueif registrations are available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRegistrationIds
IdList getRegistrationIds()Gets theIdsof theRegistrations.- Returns:
- the registrations
Ids - Throws:
IllegalStateException-hasRegistrations()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRegistrations
Gets theRegistrations.- Returns:
- the registrations
- Throws:
IllegalStateException-hasRegistrations()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getCourseEntryRecord
Gets the course entry record corresponding to the givenCourseEntryrecordType. This method is used to retrieve an object implementing the requested record. ThecourseEntryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(courseEntryRecordType)istrue.- Parameters:
courseEntryRecordType- the type of course entry record to retrieve- Returns:
- the course entry record
- Throws:
NullArgumentException-courseEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(courseEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-