OSID Logo
OSID Specifications
course chronicle package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.chronicle.CourseEntryForm
Implementsosid.OsidRelationshipForm
Description

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

MethodgetTermMetadata
Description

Gets the metadata for the term.

Returnosid.Metadatametadata for the term
CompliancemandatoryThis method must be implemented.
MethodsetTerm
Description

Sets the term.

Parametersosid.id.IdtermIdthe new term
ErrorsINVALID_ARGUMENT termId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT termId is null
CompliancemandatoryThis method must be implemented.
MethodclearTerm
Description

Clears the term.

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

Gets the metadata for the completion flag.

Returnosid.Metadatametadata for the complete flag
CompliancemandatoryThis method must be implemented.
MethodsetComplete
Description

Sets the program is complete flag.

Parametersbooleancompletethe new complete flag
ErrorsINVALID_ARGUMENT complete is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearComplete
Description

Clears the complete flag.

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

Gets the metadata for the credit scale.

Returnosid.Metadatametadata for the credit scale
CompliancemandatoryThis method must be implemented.
MethodsetCreditScale
Description

Sets the credit scale.

Parametersosid.id.IdgradeSystemIdthe new grade system
ErrorsINVALID_ARGUMENT gradeSystemId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeSystemId is null
CompliancemandatoryThis method must be implemented.
MethodclearCreditScale
Description

Clears the credit scale.

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

Gets the metadata for the credits earned.

Returnosid.Metadatametadata for the credits earned
CompliancemandatoryThis method must be implemented.
MethodsetCreditsEarned
Description

Sets the credits earned.

Parametersdecimalcreditsthe new credits
ErrorsINVALID_ARGUMENT credits is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearCreditsEarned
Description

Clears the credits earned.

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

Gets the metadata for the 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
NO_ACCESS Metadata.isReadOnly() is true
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.
MethodgetScoreScaleMetadata
Description

Gets the metadata for the score scale.

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

Sets the score scale.

Parametersosid.id.IdgradeSystemIdthe new grade system
ErrorsINVALID_ARGUMENT gradeSystemId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeSystemId is null
CompliancemandatoryThis method must be implemented.
MethodclearScoreScale
Description

Clears the score scale.

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

Gets the metadata for the score.

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

Sets the score.

Parametersdecimalscorethe new score
ErrorsINVALID_ARGUMENT score is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearScore
Description

Clears the score.

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

Gets the CourseEntryFormRecord corresponding to the given course entry record Type.

Parametersosid.type.TypecourseEntryRecordTypea course entry record type
Returnosid.course.chronicle.records.CourseEntryFormRecordthe course entry form record
ErrorsNULL_ARGUMENT courseEntryRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(courseEntryRecordType) is false
CompliancemandatoryThis method must be implemented.