OSID Logo
OSID Specifications
grading package
Version 3.0.0
Release Candidate Preview
Interfaceosid.grading.GradeEntryForm
Implementsosid.OsidRelationshipForm
Description

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

MethodgetIgnoredForCalculationsMetadata
Description

Gets the metadata for the ignore flag.

Returnosid.Metadatametadata for the ignore flag
CompliancemandatoryThis method must be implemented.
MethodsetIgnoredForCalculations
Description

Sets the ignore for calculations flag.

Parametersbooleanignorethe new ignore flag
ErrorsINVALID_ARGUMENT ignore is invalid
NO_ACCESS ignore cannot be modified
CompliancemandatoryThis method must be implemented.
MethodclearIgnoredForCalculations
Description

Clears the ignore for calculations flag.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetGradeMetadata
Description

Gets the metadata for a grade.

Returnosid.Metadatametadata for the grade
CompliancemandatoryThis method must be implemented.
MethodsetGrade
Description

Sets the grade.

Parametersosid.id.IdgradeIdthe new grade
ErrorsINVALID_ARGUMENT gradeId is invalid or GradebookColumn.getGradeSystem().isBasedOnGrades() is false
NO_ACCESS gradeId cannot be modified
NULL_ARGUMENT gradeId is null
CompliancemandatoryThis method must be implemented.
MethodclearGrade
Description

Clears the grade.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetScoreMetadata
Description

Gets the metadata for a score.

Returnosid.Metadatametadata for the score
CompliancemandatoryThis method must be implemented.
MethodsetScore
Description

Sets the score.

Parametersdecimalscorethe new score
ErrorsINVALID_ARGUMENT score is invalid or GradebookColumn.getGradeSystem().isBasedOnGrades() is true
NO_ACCESS score cannot be modified
CompliancemandatoryThis method must be implemented.
MethodclearScore
Description

Clears the score.

ErrorsNO_ACCESS Metadata.isRequired() or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetGradeEntryFormRecord
Description

Gets the GradeEntryFormRecord corresponding to the given grade entry record Type.

Parametersosid.type.TypegradeEntryRecordTypethe grade entry record type
Returnosid.grading.records.GradeEntryFormRecordthe grade entry form record
ErrorsNULL_ARGUMENT gradeEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(gradeEntryRecordType) is false
CompliancemandatoryThis method must be implemented.