OSID Logo
OSID Specifications
course plan package
Version 3.1.0
Interfaceosid.course.plan.PlanForm
Implementsosid.OsidRelationshipForm
Used Byosid.course.plan.PlanAdminSession
Description

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

MethodgetModulesMetadata
Description

Gets the metadata for the modules.

Returnosid.Metadata metadata for the modules
Compliancemandatory This method must be implemented.
MethodsetModules
Description

Sets the modules to which this plan applies.

Parametersosid.id.IdListmoduleIds the new modules
ErrorsINVALID_ARGUMENT moduleIds is invalid
NO_ACCESS moduleIds cannot be modified
NULL_ARGUMENT moduleIds is null
Compliancemandatory This method must be implemented.
MethodclearModules
Description

Clears the modules.

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

Gets the PlanFormRecord corresponding to the given plan record Type.

Parametersosid.type.TypeplanRecordType the plan record type
Returnosid.course.plan.records.PlanFormRecord the plan form record
ErrorsNULL_ARGUMENT planRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(planRecordType) is false
Compliancemandatory This method must be implemented.