OSID Logo
OSID Specifications
course requisite package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.requisite.CourseRequirementForm
Implementsosid.OsidRuleForm
osid.OsidAggregateableForm
Description

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

MethodgetRequiresCompletionMetadata
Description

Gets the metadata for the requires completion flag.

Returnosid.Metadatametadata for the requires completion flag
CompliancemandatoryThis method must be implemented.
MethodsetRequiresCompletion
Description

Sets the requires completion flag.

Parametersbooleancompletionthe new requires completion flag
ErrorsINVALID_ARGUMENT completion is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearRequiresCompletion
Description

Clears the requires completion flag.

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

Gets the metadata for the timeframe.

Returnosid.Metadatametadata for the timeframe
CompliancemandatoryThis method must be implemented.
MethodsetTimeframe
Description

Sets the timeframe.

Parametersosid.calendaring.Durationdurationthe new duration
ErrorsINVALID_ARGUMENT duration is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT duration is null
CompliancemandatoryThis method must be implemented.
MethodclearTimeframe
Description

Clears the timeframe.

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

Gets the metadata for the minimum grade.

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

Sets the minimum 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.
MethodclearMinimumGrade
Description

Clears the minimum grade.

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

Gets the metadata for the minimum score system.

Returnosid.Metadatametadata for the minimum score system
CompliancemandatoryThis method must be implemented.
MethodsetMinimumScoreSystem
Description

Sets the minimum score system.

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.
MethodclearMinimumScoreSystem
Description

Clears the minimum score system.

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

Gets the metadata for the minimum score.

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

Sets the minimum score.

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

Clears the minimum score.

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

Gets the metadata for the minimum earned credits

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

Sets the minimum earned credits.

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

Clears the minimum earned credits.

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

Gets the CourseRequirementFormRecord corresponding to the given course requirement record Type.

Parametersosid.type.TypecourseRequirementRecordTypea course requirement record type
Returnosid.course.requisite.records.CourseRequirementFormRecordthe course requirement form record
ErrorsNULL_ARGUMENT courseRequirementRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(courseRequirementRecordType) is false
CompliancemandatoryThis method must be implemented.