OSID Logo
OSID Specifications
course registration package
Version 3.0.0
Interfaceosid.course.registration.CourseRegistrationLookupSession
Implementsosid.OsidSession
Used Byosid.course.registration.CourseRegistrationManager
osid.course.registration.CourseRegistrationProxyManager
Description

This session provides methods for retrieving CourseRegistrat ions.

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 course registration methods in this session operate, retrieve and pertain to course registrations defined explicitly in the current course catalog Using an isolated view is useful for managing CourseRegistra tions with the CourseRegistrationAdminSession .
  • federated course registration view: All course registration methods in this session operate, retrieve and pertain to all course registrations defined in this course catalog and any other course registrations implicitly available in this course catalog through course catalog inheritence.

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 useFederatedCourseCatalogView() and useIsolatedCourseCatalogView() behave as a radio group and one should be selected before invoking any lookup methods.

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.
MethodcanLookupCourseRegistrations
Description

Tests if this user can perform CourseRegistr ation 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.

Returnbooleanfalse if lookup methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeCourseRegistrationView
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.
MethodusePlenaryCourseRegistrationView
Description

A complete view of the CourseRegistration 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 course registrations 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.
MethoduseEffectiveCourseRegistrationView
Description

Only course registrations whose effective dates are current are returned by methods in this session.

CompliancemandatoryThis method is must be implemented.
MethoduseAnyEffectiveCourseRegistrationView
Description

All course registrations of any effective dates are returned by methods in this session.

CompliancemandatoryThis method is must be implemented.
MethodgetCourseRegistration
Description

Gets the CourseRegistr ation specified by its Id .

In plenary mode, the exact Id is found or a NOT_FOUND results. Otherwise, the returned CourseRegistr ation may have a different Id than requested, such as the case where a duplicate Id was assigned to a CourseRegistra tion and retained for compatibility.

Parametersosid.id.IdcourseRegistrationIdId of the CourseRegistration
Returnosid.course.registration.CourseRegistrationthe course registration
ErrorsNOT_FOUNDcourseRegistrationId not found
NULL_ARGUMENTcourseRegistrationId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodgetCourseRegistrationsByIds
Description

Gets a CourseRegistrationList corresponding to the given IdList .

In plenary mode, the returned list contains all of the course registrations specified 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 CourseRegistratio ns may be omitted from the list and may present the elements in any order including returning a unique set.

Parametersosid.id.IdListcourseRegistrationIdsthe list of Ids to retrieve
Returnosid.course.registration.CourseRegistrationListthe returned CourseRegistration list
ErrorsNOT_FOUNDan Id was not found
NULL_ARGUMENTcourseRegistrationIds is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsByGenusType
Description

Gets a CourseRegistrationList corresponding to the given course registration genus Type which does not include course registrations of genus types derived from the specified Type .

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those course registrations that are accessible through this session.

Parametersosid.type.TypecourseRegistrationGenusTypea course registration genus type
Returnosid.course.registration.CourseRegistrationListthe returned CourseRegistration list
ErrorsNULL_ARGUMENTcourseRegistrationGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsByParentGenusType
Description

Gets a CourseRegistrationList corresponding to the given course registration genus Type and include any additional course registrations with genus types derived from the specified Type .

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those course registrations that are accessible through this session.

Parametersosid.type.TypecourseRegistrationGenusTypea course registration genus type
Returnosid.course.registration.CourseRegistrationListthe returned CourseRegistration list
ErrorsNULL_ARGUMENTcourseRegistrationGenusType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsByRecordType
Description

Gets a CourseRegistrationList containing the given course registration record Type .

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those course registrations that are accessible through this session.

Parametersosid.type.TypecourseRegistrationRecordTypea course registration record type
Returnosid.course.registration.CourseRegistrationListthe returned CourseRegistration list
ErrorsNULL_ARGUMENTcourseRegistrationRecordType is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsOnDate
Description

Gets all CourseRegistrations effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session.

In effective mode, course registrations are returned that are currently effective. In any effective mode, effective course registrations and those currently expired are returned.

Parametersosid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTfrom or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsForCourseOffering
Description

Gets all CourseRegistrations associated with a given CourseOffering .

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session.

In effective mode, course registrations are returned that are currently effective. In any effective mode, effective course registrations and those currently expired are returned.

Parametersosid.id.IdcourseOfferingIda course offering Id
Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsNULL_ARGUMENTcourseOfferingId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsForCourseOfferingOnDate
Description

Gets all CourseRegistrations for the given course offering and effective during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session.

In effective mode, course registrations are returned that are currently effective. In any effective mode, effective course registrations and those currently expired are returned.

Parametersosid.id.IdcourseOfferingIda course offering Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTcourseOfferingId, from , or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsForStudent
Description

Gets all CourseRegistrations for a given student.

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session.

In effective mode, course registrations are returned that are currently effective. In any effective mode, effective course registrations and those currently expired are returned.

Parametersosid.id.IdresourceIda resource Id
Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsNULL_ARGUMENTresourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsForStudentOnDate
Description

Gets all CourseRegistrations for a student during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session.

In effective mode, course registrations are returned that are currently effective. In any effective mode, effective course registrations and those currently expired are returned.

Parametersosid.id.IdresourceIda resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTresourceId, from , or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsForCourseOfferingAndStudent
Description

Gets all CourseRegistrations for a given course offering and student.

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session.

In effective mode, course registrations are returned that are currently effective. In any effective mode, effective course registrations and those currently expired are returned.

Parametersosid.id.IdcourseOfferingIda course offering Id
osid.id.IdresourceIda resource Id
Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsNULL_ARGUMENTcourseOfferingId or resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrationsForCourseOfferingAndStudentOnDate
Description

Gets all CourseRegistrations for a course offering and student during the entire given date range inclusive but not confined to the date range.

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session.

In effective mode, course registrations are returned that are currently effective. In any effective mode, effective course registrations and those currently expired are returned.

Parametersosid.id.IdcourseOfferingIda course offering Id
osid.id.IdresourceIda resource Id
osid.calendaring.DateTimefromstart of date range
osid.calendaring.DateTimetoend of date range
Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsINVALID_ARGUMENTfrom is greater than to
NULL_ARGUMENTcourseOfferingId, resourceId, from , or to is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetCourseRegistrations
Description

Gets all CourseRegistrations .

In plenary mode, the returned list contains all known course registrations or an error results. Otherwise, the returned list may contain only those course registrations that are accessible through this session.

Returnosid.course.registration.CourseRegistrationLista list of CourseRegistrations
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.