Interface | osid.course.ActivityLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving This session defines views that offer differing behaviors when retrieving multiple objects.
Generally, the comparative view should be used for most
applications as it permits operation even if there is data
that cannot be accessed. The methods | ||
Method | getCourseCatalogId | ||
Description |
Gets the | ||
Return | osid.id.Id | the CourseCatalog Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getCourseCatalog | ||
Description |
Gets the | ||
Return | osid.course.CourseCatalog | the course catalog | |
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 | useFederatedCourseCatalogView | ||
Description |
Federates the view for methods in this session. A federated view will include activities in course catalogs which are children of this course catalog in the course catalog hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedCourseCatalogView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts lookups to this course catalog only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useEffectiveActivityView | ||
Description |
All activity methods return activities where the current date falls within the effective dates inclusive. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useAnyEffectiveActivityView | ||
Description |
All methods return activities of any effective or expired status. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useNormalizedActivityView | ||
Description |
A normalized view uses a single | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useDenormalizedActivityView | ||
Description |
A denormalized view expands recurring activities into a series of activities. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getActivity | ||
Description |
Gets the In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | activityId | Id of the Activity |
Return | osid.course.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 In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.IdList | activityIds | the list of Ids to retrieve |
Return | osid.course.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 In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.type.Type | activityGenusType | an activity genus type |
Return | osid.course.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 In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.type.Type | activityGenusType | an activity genus type |
Return | osid.course.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 an In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.type.Type | activityRecordType | an activity record type |
Return | osid.course.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 | getActivitiesOnDate | ||
Description |
Gets an In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.calendaring.DateTime | from | start of date range |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | from or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForActivityUnit | ||
Description |
Gets all In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session. In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | activityUnitId | an activity unit Id |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | activityUnitId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForActivityUnitOnDate | ||
Description |
Gets an In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | activityUnitId | an activity unit Id |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | activityUnitId, from, or to is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForTerm | ||
Description |
Gets all In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session. In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | termId | a term Id |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | termId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForTermOnDate | ||
Description |
Gets an In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | termId | a term Id |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | termId, from, or to is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForActivityUnitAndTerm | ||
Description |
Gets all In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session. In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | activityUnitId | an activity unit Id |
osid.id.Id | termId | a term Id | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | activityUnitId or termId is null
| |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForActivityUnitAndTermOnDate | ||
Description |
Gets an In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | activityUnitId | an activity unit Id |
osid.id.Id | termId | a term Id | |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | activityUnitId, termId, from, or to is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivitiesForCourseOffering | ||
Description |
Gets all In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session. In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Parameters | osid.id.Id | courseOfferingId | a course Id |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | courseOfferingId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivities | ||
Description |
Gets all In plenary mode, the returned list contains all known activities or an error results. Otherwise, the returned list may contain only those activities that are accessible through this session. In effective mode, activities are returned where the current date falls within the effective dates inclusive. In any effective mode, effective and expired activities are returned. | ||
Return | osid.course.ActivityList | a list of Activities | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |