public interface GradeEntry extends OsidRelationship
A GradeEntry
represents an entry in a Gradebook.
Modifier and Type | Method and Description |
---|---|
Grade |
getGrade()
Gets the grade in this entry if the grading system is based on grades.
|
GradebookColumn |
getGradebookColumn()
Gets the
GradebookColumn. |
Id |
getGradebookColumnId()
Gets the
Id of the GradebookColumn. |
GradeEntryRecord |
getGradeEntryRecord(Type gradeEntryRecordType)
Gets the grade entry record corresponding to the given
GradeEntry record Type. |
Id |
getGradeId()
Gets the grade
Id in this entry if the grading system
is based on grades. |
Resource |
getGrader()
Gets the
Resource that created this entry. |
Id |
getGraderId()
Gets the
Id of the Resource that created
this entry. |
Agent |
getGradingAgent()
Gets the
Agent that created this entry. |
Id |
getGradingAgentId()
Gets the
Id of the Agent that created
this entry. |
Resource |
getKeyResource()
Gets the key resource of this entry.
|
Id |
getKeyResourceId()
Gets the
Id of the key resource of this entry. |
GradeEntry |
getOverriddenCalculatedEntry()
Gets the calculated entry this entry overrides.
|
Id |
getOverriddenCalculatedEntryId()
Gets the calculated entry
Id this entry overrides. |
java.math.BigDecimal |
getScore()
Gets the score in this entry if the grading system is not based on
grades.
|
DateTime |
getTimeGraded()
Gets the time the gradeable object was graded.
|
boolean |
isDerived()
Tests if this is a calculated entry.
|
boolean |
isGraded()
Tests if a grade or score has been assigned to this entry.
|
boolean |
isIgnoredForCalculations()
Tests if this is entry should be ignored in any averaging, scaling or
curve calculation.
|
boolean |
overridesCalculatedEntry()
Tests if this is a manual entry that overrides a calculated entry.
|
getEndReason, getEndReasonId, hasEndReason
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
getEndDate, getStartDate, isEffective
Id getGradebookColumnId()
Id
of the GradebookColumn.
Id
of the GradebookColumn
mandatory
- This method must be implemented. GradebookColumn getGradebookColumn() throws OperationFailedException
GradebookColumn.
GradebookColumn
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getKeyResourceId()
Id
of the key resource of this entry. The key
resource may be a student or other applicable key to identify a row of
grading entries. Id
of the key resourcemandatory
- This method must be implemented. Resource getKeyResource() throws OperationFailedException
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isDerived()
true
if this entry is a calculated entry,
false
otherwise. If true,
then
overridesCalculatedEntry()
must be
false.
mandatory
- This method must be implemented. boolean overridesCalculatedEntry()
true
if this entry overrides a calculated
entry, false
otherwise. If true,
then isDerived()
must be false.
mandatory
- This method must be implemented. Id getOverriddenCalculatedEntryId()
Id
this entry overrides. Id
IllegalStateException
- overridesDerivedEntry()
is false
mandatory
- This method must be implemented. GradeEntry getOverriddenCalculatedEntry() throws OperationFailedException
IllegalStateException
-
overridesCalculatedEntry()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isIgnoredForCalculations()
true
if this entry is ignored, false
otherwisemandatory
- This method must be implemented. boolean isGraded()
true
if a grade has been assigned, false
otherwisemandatory
- This method must be implemented. Id getGradeId()
Id
in this entry if the grading system
is based on grades. Id
IllegalStateException
- isGraded()
is
false
or GradeSystem.isBasedOnGrades()
is false
mandatory
- This method must be implemented. Grade getGrade() throws OperationFailedException
IllegalStateException
- isGraded()
is
false
or GradeSystem.isBasedOnGrades()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. java.math.BigDecimal getScore()
IllegalStateException
- isGraded()
is
false
or GradeSystem.isBasedOnGrades()
is true
mandatory
- This method must be implemented. DateTime getTimeGraded()
IllegalStateException
- isGraded()
is
false
or isDerived()
is
true
mandatory
- This method must be implemented. Id getGraderId()
Id
of the Resource
that created
this entry. Id
of the Resource
IllegalStateException
- isGraded()
is
false
or isDerived()
is
true
mandatory
- This method must be implemented. Resource getGrader() throws OperationFailedException
Resource
that created this entry. Resource
IllegalStateException
- isGraded() is false or
isDerived() is true
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Id getGradingAgentId()
Id
of the Agent
that created
this entry. Id
of the Agent
IllegalStateException
- isGraded()
is
false
or isDerived()
is
true
mandatory
- This method must be implemented. Agent getGradingAgent() throws OperationFailedException
Agent
that created this entry. Agent
IllegalStateException
- isGraded() is false or
isDerived() is true
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. GradeEntryRecord getGradeEntryRecord(Type gradeEntryRecordType) throws OperationFailedException
GradeEntry
record Type.
This method is used to
retrieve an object implementing the requested record. The
gradeEntryRecordType
may be the Type
returned
in getRecordTypes()
or any of its parents in a
Type
hierarchy where
hasRecordType(gradeEntryRecordType)
is true
.gradeEntryRecordType
- the type of the record to retrieveNullArgumentException
- gradeEntryRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(gradeEntryRecordType)
is false
mandatory
- This method must be implemented.