public interface Activity extends OsidObject, Subjugateable
An Activity represents learning material or other
learning activities to meet an objective. An Activity has may relate to a
set of Asssts for self learning, recommended Courses
to take, or a learning Assessment. The learning
Assessment differs from the Objective
Assessment in that the latter used to test for proficiency in the
Objective.
Generally, an Activity should focus on one of assets,
courses, assessments, or some other specific activity related to the
objective described or related in the ActivityRecord.
| Modifier and Type | Method and Description |
|---|---|
ActivityRecord |
getActivityRecord(Type activityRecordType)
Gets the activity record corresponding to the given
Activity
record Type. |
IdList |
getAssessmentIds()
Gets the
Ids of any assessments associated with this
activity. |
AssessmentList |
getAssessments()
Gets any assessments associated with this activity.
|
IdList |
getAssetIds()
Gets the
Ids of any assets associated with this
activity. |
AssetList |
getAssets()
Gets any assets associated with this activity.
|
IdList |
getCourseIds()
Gets the
Ids of any courses associated with this
activity. |
CourseList |
getCourses()
Gets any courses associated with this activity.
|
Objective |
getObjective()
Gets the related objective.
|
Id |
getObjectiveId()
Gets the
Id of the related objective. |
boolean |
isAssessmentBasedActivity()
Tests if this is an assessment based activity.
|
boolean |
isAssetBasedActivity()
Tests if this is an asset based activity.
|
boolean |
isCourseBasedActivity()
Tests if this is a course based activity.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeId getObjectiveId()
Id of the related objective. Id mandatory - This method must be implemented. Objective getObjective() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean isAssetBasedActivity()
true if this activity is based on assets,
false otherwisemandatory - This method must be implemented. IdList getAssetIds()
Ids of any assets associated with this
activity. Ids IllegalStateException - isAssetBasedActivity()
is false mandatory - This method must be implemented. AssetList getAssets() throws OperationFailedException
IllegalStateException - isAssetBasedActivity()
is false OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean isCourseBasedActivity()
true if this activity is based on courses,
false otherwisemandatory - This method must be implemented. IdList getCourseIds()
Ids of any courses associated with this
activity. Ids IllegalStateException - isCourseBasedActivity()
is false mandatory - This method must be implemented. CourseList getCourses() throws OperationFailedException
IllegalStateException - isCourseBasedActivity()
is false OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean isAssessmentBasedActivity()
true if this activity is based on assessments,
false otherwisemandatory - This method must be implemented. IdList getAssessmentIds()
Ids of any assessments associated with this
activity. Ids IllegalStateException -
isAssessmentBasedActivity() is false mandatory - This method must be implemented. AssessmentList getAssessments() throws OperationFailedException
IllegalStateException -
isAssessmentBasedActivity() is false OperationFailedException - unable to complete requestmandatory - This method must be implemented. ActivityRecord getActivityRecord(Type activityRecordType) throws OperationFailedException
Activity
record Type. This method is used to retrieve an
object implementing the requested record. The
activityRecordType may be the Type returned in
getRecordTypes() or any of its parents in a Type
hierarchy where hasRecordType(activityRecordType)
is true .activityRecordType - the type of the record to retrieveNullArgumentException - activityRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(activityRecordType) is false
mandatory - This method must be implemented.