OSID Logo
OSID Specifications
course registration package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.registration.ActivityBundleForm
Implementsosid.OsidObjectForm
Description

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

MethodgetCreditsMetadata
Description

Gets the metadata for credits.

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

Sets the activity bundle credits.

Parametersdecimal[]creditsthe new credits
ErrorsINVALID_ARGUMENT credits is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT credits is null
CompliancemandatoryThis method must be implemented.
MethodclearCredits
Description

Removes the credits.

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

Gets the metadata for a set of grading options.

Returnosid.Metadatametadata for the grading options
CompliancemandatoryThis method must be implemented.
MethodsetGradingOptions
Description

Sets the grading options.

Parametersosid.id.Id[]gradeSystemIdsthe new grade systems
ErrorsINVALID_ARGUMENT gradeSystemIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT gradeSystemIds is null
CompliancemandatoryThis method must be implemented.
MethodclearGradingOptions
Description

Removes the grading options.

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

Gets the ActivityBundleFormRecord corresponding to the given activity bundle record Type.

Parametersosid.type.TypeactivityBundleRecordTypean activity bundle record type
Returnosid.course.registration.records.ActivityBundleFormRecordthe activity bundle form record
ErrorsNULL_ARGUMENT activityBundleRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(activityBundleRecordType) is false
CompliancemandatoryThis method must be implemented.