OSID Logo
OSID Specifications
course package
Version 3.0.0
Release Candidate Preview
Interfaceosid.course.ActivityUnravellingSession
Implementsosid.OsidSession
Description

This session provides methods for retrieving and expanding activities.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative view: elements may be silently omitted or re-ordered
  • plenary view: provides a complete set or is an error condition
  • isolated course catalog view: All activity methods in this session operate, retrieve and pertain to activities defined explicitly in the current course catalog.
  • federated course catalog view: All activity event in this session operate, retrieve and pertain to all activities defined in this course catalog and any other cours ecatalogs implicitly available in this course catalog through course catalog inheritence.
MethodgetCourseCatalogId
Description

Gets the CourseCatalog Id associated with this session.

Returnosid.id.Idthe CourseCatalog Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetCourseCatalog
Description

Gets the CourseCatalog associated with this session.

Returnosid.course.CourseCatalogthe course catalog
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanUnravelActviities
Description

Tests if this user can perform Activity lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.

Returnboolean false if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeActivityView
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.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryActivityView
Description

A complete view of the Activity returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethoduseFederatedCourseCatalogView
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.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedCourseCatalogView
Description

Isolates the view for methods in this session. An isolated view restricts lookups to this course catalog only.

CompliancemandatoryThis method is must be implemented.
MethodgetExplicitActivityByActivity
Description

Gets the activity where the given activity Id was issued as part of a recurring series.

Parametersosid.id.IdactivityId an activity Id
Returnosid.course.Activitythe returned Activity
ErrorsNOT_FOUND activityId is not found
NULL_ARGUMENT activityId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetExplicitActivitiesByActivities
Description

Gets an ActivityList corresponding to the given event IdList where the activities were implcitly created from the recurring series. In plenary mode, the returned list contains all of the activities corresponding to the events in the Id list, in the order of the list, including duplicates, or an error results if an Id in the supplied list is not found or inaccessible. Otherwise, inaccessible activities may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListactivityIdsthe list of Ids to retrieve
Returnosid.course.ActivityListthe returned Activity list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT eventIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodexpandActivity
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.

Parametersosid.id.IdactivityId Id of the Activity
Returnosid.course.ActivityListthe returned Activity list
ErrorsNOT_FOUND activityId was not found
NULL_ARGUMENT activityId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodexpandActivityInDateRange
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.

Parametersosid.id.IdactivityId Id of the Activity
osid.calendaring.DateTimefromstart date
osid.calendaring.DateTimetoend date
Returnosid.course.ActivityListthe returned Activity list
ErrorsINVALID_ARGUMENT to is less than from
NOT_FOUND activityId was not found
NULL_ARGUMENT activityId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodexpandActivities
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.

Parametersosid.id.IdListactivityIdsthe list of Ids to expand
Returnosid.course.ActivityListthe returned Activity list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENT activityIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodexpandActivitiesInDateRange
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.

Parametersosid.id.IdactivityIdsthe list of Ids to expand
osid.calendaring.DateTimefromstart date
osid.calendaring.DateTimetoend date
Returnosid.course.ActivityListthe returned Activity list
ErrorsINVALID_ARGUMENT to is less than from
NOT_FOUNDan Id was not found
NULL_ARGUMENT activityIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetActivitiesByDate
Description

Gets a list of normalized unexpanded activities where the given date falls within the span of a single activity meeting time. 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.

Parametersosid.calendaring.DateTimedatetimea date
Returnosid.course.ActivityListthe returned Activity list
ErrorsNULL_ARGUMENT datetime is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetActivtiesInDateRange
Description

Gets a normalized list of unexpanded activities whose series falls entirely within the given range inclusive . 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.

Parametersosid.calendaring.DateTimefromstart date
osid.calendaring.DateTimetoend date
Returnosid.course.ActivityListthe returned Activity list
ErrorsINVALID_ARGUMENT to is less than from
NULL_ARGUMENT from or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetNumberOfActivities
Description

Gets the number of activity meeting times in the recurring series.

Parametersosid.id.IdactivityId Id of the recurring Activity
Returncardinalthe number of meeting times
ErrorsNOT_FOUND activityId was not found
NULL_ARGUMENT activityId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetNumberOfActivitiesInDateRange
Description

Gets the number of activity meeting times in the recurring series between the given dates inclusive.

Parametersosid.id.IdactivityId Id of the recurring Activity
osid.calendaring.DateTimefromstart date
osid.calendaring.DateTimetoend date
Returncardinalthe number of meeting times
ErrorsINVALID_ARGUMENT to is less than from
NOT_FOUND activityId was not found
NULL_ARGUMENT activityId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.