OSID Logo
OSID Specifications
course program package
Version 3.1.0
Interfaceosid.course.program.EnrollmentForm
Implementsosid.OsidRelationshipForm
Implemented Byosid.course.program.batch.EnrollmentBatchForm
Used Byosid.course.program.EnrollmentAdminSession
Description

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

MethodgetParentEnrollmentMetadata
Description

Gets the metadata for the parent enrollment.

Returnosid.Metadata metadata for the parent enrollment
Compliancemandatory This method must be implemented.
MethodsetParentEnrollment
Description

Sets the parent enrollment.

Parametersosid.id.IdenrollmentId the new parent enrollment
ErrorsINVALID_ARGUMENT enrollmentId is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT enrollmentId is null
Compliancemandatory This method must be implemented.
MethodclearParentEnrollment
Description

Removes the parent enrollment.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetEnrollmentFormRecord
Description

Gets the EnrollmentFormRecord corresponding to the given enrollment record Type.

Parametersosid.type.TypeenrollmentRecordType an enrollment record type
Returnosid.course.program.records.EnrollmentFormRecord the enrollment form record
ErrorsNULL_ARGUMENT enrollmentRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(enrollmentRecordType) is false
Compliancemandatory This method must be implemented.