OSID Logo
OSID Specifications
learning package
Version 3.1.0
Interfaceosid.learning.ActivityForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Implemented Byosid.learning.batch.ActivityBatchForm
Used Byosid.learning.ActivityAdminSession
Description

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

MethodgetAssetsMetadata
Description

Gets the metadata for the assets.

Returnosid.Metadata metadata for the assets
Compliancemandatory This method must be implemented.
MethodsetAssets
Description

Sets the assets.

Parametersosid.id.Id[]assetIds the asset Ids
ErrorsINVALID_ARGUMENT assetIds is invalid
NULL_ARGUMENT assetIds is null
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearAssets
Description

Clears the assets.

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

Gets the metadata for the courses.

Returnosid.Metadata metadata for the courses
Compliancemandatory This method must be implemented.
MethodsetCourses
Description

Sets the courses.

Parametersosid.id.Id[]courseIds the course Ids
ErrorsINVALID_ARGUMENT courseIds is invalid
NULL_ARGUMENT courseIds is null
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearCourses
Description

Clears the courses.

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

Gets the metadata for the assessments.

Returnosid.Metadata metadata for the assessments
Compliancemandatory This method must be implemented.
MethodsetAssessments
Description

Sets the assessments.

Parametersosid.id.Id[]assessmentIds the assessment Ids
ErrorsINVALID_ARGUMENT assessmentIds is invalid
NULL_ARGUMENT assessmentIds is null
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearAssessments
Description

Clears the assessments.

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

Gets the ActivityFormRecord corresponding to the given activity record Type.

Parametersosid.type.TypeactivityRecordType the activity record type
Returnosid.learning.records.ActivityFormRecord the activity form record
ErrorsNULL_ARGUMENT activityRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(activityRecordType) is false
Compliancemandatory This method must be implemented.