OSID Logo
OSID Specifications
learning package
Version 3.0.0
Release Candidate Preview
Interfaceosid.learning.ActivityForm
Implementsosid.OsidObjectForm
osid.OsidSubjugateableForm
Description

This is the form for creating and updating Activities. Like all OsidForm objects, 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.Metadatametadata for the assets
CompliancemandatoryThis method must be implemented.
MethodsetAssets
Description

Sets the assets.

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

Clears the assets.

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

Gets the metadata for the courses.

Returnosid.Metadatametadata for the courses
CompliancemandatoryThis method must be implemented.
MethodsetCourses
Description

Sets the courses.

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

Clears the courses.

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

Gets the metadata for the assessments.

Returnosid.Metadatametadata for the assessments
CompliancemandatoryThis method must be implemented.
MethodsetAssessments
Description

Sets the assessments.

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

Clears the assessments.

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

Gets the ActivityFormRecord corresponding to the given activity record Type.

Parametersosid.type.TypeactivityRecordTypethe activity record type
Returnosid.learning.records.ActivityFormRecordthe activity form record
ErrorsNULL_ARGUMENT activityRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(activityRecordType) is false
CompliancemandatoryThis method must be implemented.