Interface | osid.learning.ActivityLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Activities may have an additional records indicated by
their respective record types. The record may not be accessed
through a cast of the | ||
Method | getObjectiveBankId | ||
Description |
Gets the | ||
Return | osid.id.Id | the ObjectiveBank Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getObjectiveBank | ||
Description |
Gets the | ||
Return | osid.learning.ObjectiveBank | the ObjectiveBank associated with this session | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canLookupActivities | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativeActivityView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryActivityView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedObjectiveBankView | ||
Description |
Federates the view for methods in this session. A federated view will include activities in objective banks which are children of this objective bank in the objective bank hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedObjectiveBankView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this objective bank only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getActivity | ||
Description |
Gets the | ||
Parameters | osid.id.Id | activityId | Id of the Activity |
Return | osid.learning.Activity | the activity | |
Errors | NOT_FOUND | activityId not found | |
NULL_ARGUMENT | activityId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getActivitiesByIds | ||
Description |
Gets an | ||
Parameters | osid.id.IdList | activityIds | the list of Ids to retrieve |
Return | osid.learning.ActivityList | the returned Activity list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | activityIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesByGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | activityGenusType | an activity genus type |
Return | osid.learning.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | activityGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesByParentGenusType | ||
Description |
Gets an | ||
Parameters | osid.type.Type | activityGenusType | an activity genus type |
Return | osid.learning.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | activityGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | activityRecordType | an activity record type |
Return | osid.learning.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | activityRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForObjective | ||
Description |
Gets the activities for the given objective. In plenary
mode, the returned list contains all of the activities
mapped to the objective | ||
Parameters | osid.id.Id | objectiveId | Id of the Objective |
Return | osid.learning.ActivityList | list of enrollments | |
Errors | NOT_FOUND | objectiveId not found | |
NULL_ARGUMENT | objectiveId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getActivitiesForObjectives | ||
Description |
Gets the activities for the given objectives. In
plenary mode, the returned list contains all of the
activities specified in the objective | ||
Parameters | osid.id.IdList | objectiveIds | list of objective Ids |
Return | osid.learning.ActivityList | list of activities | |
Errors | NOT_FOUND | an objectiveId not found | |
NULL_ARGUMENT | objectiveIdList is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getActivitiesByAsset | ||
Description |
Gets the activities for the given asset. In plenary
mode, the returned list contains all of the activities
mapped to the asset | ||
Parameters | osid.id.Id | assetId | Id of an Asset |
Return | osid.learning.ActivityList | list of activities | |
Errors | NOT_FOUND | assetId not found | |
NULL_ARGUMENT | assetId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getActivitiesByAssets | ||
Description |
Gets the activities for the given asset. In plenary
mode, the returned list contains all of the activities
mapped to the asset | ||
Parameters | osid.id.IdList | assetIds | Ids of Assets |
Return | osid.learning.ActivityList | list of activities | |
Errors | NOT_FOUND | an assetId not found | |
NULL_ARGUMENT | assetIdList is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getActivities | ||
Description |
Gets all | ||
Return | osid.learning.ActivityList | a ActivityList | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |