Interface | osid.course.ActivityUnravellingSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session provides methods for retrieving and expanding activities. This session defines views that offer differing behaviors when retrieving multiple objects.
| ||
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 | canUnravelActviities | ||
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 | getExplicitActivityByActivity | ||
Description |
Gets the activity where the given activity | ||
Parameters | osid.id.Id | activityId | an activity Id |
Return | osid.course.Activity | the returned Activity | |
Errors | NOT_FOUND | activityId is not found | |
NULL_ARGUMENT | activityId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getExplicitActivitiesByActivities | ||
Description |
Gets an | ||
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 | eventIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | expandActivity | ||
Description |
Expands the given activity into a series of single-date activities In plenary mode, the returned list contains all of the activities in the series, including duplicates, or an error results. In comparative mode, activities may be omitted from the list and may present the elements in any order, including providing a unique set. | ||
Parameters | osid.id.Id | activityId | Id of the Activity |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | NOT_FOUND | activityId was 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 | expandActivityInDateRange | ||
Description |
Expands the given activity into a series of single-date activities that fall within the given date range inclusive. In plenary mode, the returned list contains all of the activities in the series, including duplicates, or an error results. In comparative mode, activities may be omitted from the list and may present the elements in any order, including providing a unique set. | ||
Parameters | osid.id.Id | activityId | Id of the Activity |
osid.calendaring.DateTime | from | start date | |
osid.calendaring.DateTime | to | end date | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | INVALID_ARGUMENT | to is less than from | |
NOT_FOUND | activityId was 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 | expandActivities | ||
Description |
Expands the given recurring activities into a series of single-date activities. In plenary mode, the returned list contains all of the activities in the series, including duplicates, or an error results. In comparative mode, activities may be omitted from the list and may present the elements in any order, including providing a unique set. | ||
Parameters | osid.id.IdList | activityIds | the list of Ids to expand |
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 | expandActivitiesInDateRange | ||
Description |
Expands the given recurring activities into a series of single-date activities that fall within the given date range inclusive. In plenary mode, the returned list contains all of the activities in the series, including duplicates, or an error results. In comparative mode, activities may be omitted from the list and may present the elements in any order, including providing a unique set. | ||
Parameters | osid.id.Id | activityIds | the list of Ids to expand |
osid.calendaring.DateTime | from | start date | |
osid.calendaring.DateTime | to | end date | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | INVALID_ARGUMENT | to is less than from | |
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 is must be implemented. | |
Method | getActivitiesByDate | ||
Description |
Gets a list of normalized unexpanded activities where
the given date falls within the span of a single activity
meeting time. | ||
Parameters | osid.calendaring.DateTime | datetime | a date |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | NULL_ARGUMENT | datetime is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getActivtiesInDateRange | ||
Description |
Gets a normalized list of unexpanded activities whose
series falls entirely within the given range inclusive
| ||
Parameters | osid.calendaring.DateTime | from | start date |
osid.calendaring.DateTime | to | end date | |
Return | osid.course.ActivityList | the returned Activity list | |
Errors | INVALID_ARGUMENT | to is less than from | |
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 | getNumberOfActivities | ||
Description |
Gets the number of activity meeting times in the recurring series. | ||
Parameters | osid.id.Id | activityId | Id of the recurring Activity |
Return | cardinal | the number of meeting times | |
Errors | NOT_FOUND | activityId was 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 | getNumberOfActivitiesInDateRange | ||
Description |
Gets the number of activity meeting times in the recurring series between the given dates inclusive. | ||
Parameters | osid.id.Id | activityId | Id of the recurring Activity |
osid.calendaring.DateTime | from | start date | |
osid.calendaring.DateTime | to | end date | |
Return | cardinal | the number of meeting times | |
Errors | INVALID_ARGUMENT | to is less than from | |
NOT_FOUND | activityId was 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. |