Interface GradeEntry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A GradeEntry represents an entry in a Gradebook .
-
Method Summary
Modifier and TypeMethodDescriptiongetGrade()Gets the grade in this entry if the grading system is based on grades.Gets theGradebookColumn.Gets theIdof theGradebookColumn.getGradeEntryRecord(Type gradeEntryRecordType) Gets the grade entry record corresponding to the givenGradeEntryrecordType.Gets the gradeIdin this entry if the grading system is based on grades.Gets theResourcethat created this entry.Gets theIdof theResourcethat created this entry.Gets theAgentthat created this entry.Gets theIdof theAgentthat created this entry.Gets the key resource of this entry.Gets theIdof the key resource of this entry.Gets the calculated entry this entry overrides.Gets the calculated entryIdthis entry overrides.getScore()Gets the score in this entry if the grading system is not based on grades.Gets the time the gradeable object was graded.booleanTests if this is a calculated entry.booleanisGraded()Tests if a grade or score has been assigned to this entry.booleanTests if this is entry should be ignored in any averaging, scaling or curve calculation.booleanTests if this is a manual entry that overrides a calculated entry.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
-
getGradebookColumnId
Id getGradebookColumnId()Gets theIdof theGradebookColumn.- Returns:
- the
Idof theGradebookColumn - Compliance:
mandatory- This method must be implemented.
-
getGradebookColumn
Gets theGradebookColumn.- Returns:
- the
GradebookColumn - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getKeyResourceId
Id getKeyResourceId()Gets theIdof the key resource of this entry. The key resource may be a student or other applicable key to identify a row of grading entries.- Returns:
Idof the key resource- Compliance:
mandatory- This method must be implemented.
-
getKeyResource
Gets the key resource of this entry. The key resource may be a student or other applicable key to identify a row of grading entries.- Returns:
- the key resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isDerived
boolean isDerived()Tests if this is a calculated entry.- Returns:
trueif this entry is a calculated entry,falseotherwise. Iftrue, thenoverridesCalculatedEntry()must befalse.- Compliance:
mandatory- This method must be implemented.
-
overridesCalculatedEntry
boolean overridesCalculatedEntry()Tests if this is a manual entry that overrides a calculated entry.- Returns:
trueif this entry overrides a calculated entry,falseotherwise. Iftrue, thenisDerived()must befalse.- Compliance:
mandatory- This method must be implemented.
-
getOverriddenCalculatedEntryId
Id getOverriddenCalculatedEntryId()Gets the calculated entryIdthis entry overrides.- Returns:
- the calculated entry
Id - Throws:
IllegalStateException-overridesDerivedEntry()isfalse- Compliance:
mandatory- This method must be implemented.
-
getOverriddenCalculatedEntry
Gets the calculated entry this entry overrides.- Returns:
- the calculated entry
- Throws:
IllegalStateException-overridesCalculatedEntry()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isIgnoredForCalculations
boolean isIgnoredForCalculations()Tests if this is entry should be ignored in any averaging, scaling or curve calculation.- Returns:
trueif this entry is ignored,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
isGraded
boolean isGraded()Tests if a grade or score has been assigned to this entry. Generally, an entry is created with a grade or score.- Returns:
trueif a grade has been assigned,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGradeId
Id getGradeId()Gets the gradeIdin this entry if the grading system is based on grades.- Returns:
- the grade
Id - Throws:
IllegalStateException-isGraded()isfalseorGradeSystem.isBasedOnGrades()isfalse- Compliance:
mandatory- This method must be implemented.
-
getGrade
Gets the grade in this entry if the grading system is based on grades.- Returns:
- the grade
- Throws:
IllegalStateException-isGraded()isfalseorGradeSystem.isBasedOnGrades()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getScore
BigDecimal getScore()Gets the score in this entry if the grading system is not based on grades.- Returns:
- the score
- Throws:
IllegalStateException-isGraded()isfalseorGradeSystem.isBasedOnGrades()istrue- Compliance:
mandatory- This method must be implemented.
-
getTimeGraded
DateTime getTimeGraded()Gets the time the gradeable object was graded.- Returns:
- the timestamp of the grading entry
- Throws:
IllegalStateException-isGraded()isfalseorisDerived()istrue- Compliance:
mandatory- This method must be implemented.
-
getGraderId
Id getGraderId()Gets theIdof theResourcethat created this entry.- Returns:
- the
Idof theResource - Throws:
IllegalStateException-isGraded()isfalseorisDerived()istrue- Compliance:
mandatory- This method must be implemented.
-
getGrader
Gets theResourcethat created this entry.- Returns:
- the
Resource - Throws:
IllegalStateException-isGraded() is false or isDerived() is trueOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getGradingAgentId
Id getGradingAgentId()Gets theIdof theAgentthat created this entry.- Returns:
- the
Idof theAgent - Throws:
IllegalStateException-isGraded()isfalseorisDerived()istrue- Compliance:
mandatory- This method must be implemented.
-
getGradingAgent
Gets theAgentthat created this entry.- Returns:
- the
Agent - Throws:
IllegalStateException-isGraded() is false or isDerived() is trueOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getGradeEntryRecord
Gets the grade entry record corresponding to the givenGradeEntryrecordType. This method is used to retrieve an object implementing the requested record. ThegradeEntryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(gradeEntryRecordType)istrue.- Parameters:
gradeEntryRecordType- the type of the record to retrieve- Returns:
- the grade entry record
- Throws:
NullArgumentException-gradeEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(gradeEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-