Interface ActivityRegistrationLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving activity registrations. An
ActivityRegistration is a relationship between a student and an
Activity . ActivityRegistrations may be implied from a
Registration .
This lookup session defines several views:
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete result set or is an error condition
- isolated course catalog view: All activity registration methods
in this session operate, retrieve and pertain to activity
registrations defined explicitly in the current course catalog. Using
an isolated view is useful for managing
ActivityRegistrationswith theActivityRegistrationAdminSession. - federated course catalog view: All activity registration lookup methods in this session operate, retrieve and pertain to all activity registrations defined in this course catalog and any other activity registrations implicitly available in this course catalog through course catalog inheritence.
- effective vote view: All activity registration lookup methods return registrations where the current date falls in between the effective dates inclusive.
- any effective vote view: Activity registrations of any effective date are returned from methods.
The methods useFederatedCourseCatalogView() and
useIsolatedCourseCatalogView() behave as a radio group and one should be
selected before invoking any lookup methods.
Activity registrations may have an additional records indicated by
their respective record types. The record may not be accessed through a
cast of the ActivityRegistration .
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performActivityRegistrationlookups.getActivityRegistration(Id activityRegistrationId) Gets theActivityRegistrationspecified by itsId.Gets allActivityRegistrations.getActivityRegistrationsByGenusType(Type activityRegistrationGenusType) Gets anActivityRegistrationListcorresponding to the given activity registration genusTypewhich does not include activity registrations of types derived from the specifiedType.getActivityRegistrationsByIds(IdList activityRegistrationIds) Gets anActivityRegistrationListcorresponding to the givenIdList.getActivityRegistrationsByParentGenusType(Type activityRegistrationGenusType) Gets anActivityRegistrationListcorresponding to the given course genusTypeand include any additional activity registrations with genus types derived from the specifiedType.getActivityRegistrationsByRecordType(Type activityRegistrationRecordType) Gets anActivityRegistrationListcontaining the given activity registration recordType.getActivityRegistrationsForActivity(Id activityId) Gets allActivityRegistrationsassociated with a givenActivity.getActivityRegistrationsForActivityAndStudent(Id activityId, Id resourceId) Gets allActivityRegistrationsfor a given activity and student.getActivityRegistrationsForActivityAndStudentOnDate(Id activityId, Id resourceId, DateTime from, DateTime to) Gets allActivityRegistrationsfor an activity and student during the entire given date range inclusive but not confined to the date range.getActivityRegistrationsForActivityOnDate(Id activityId, DateTime from, DateTime to) Gets allActivityRegistrationsfor the given activity and effective during the entire given date range inclusive but not confined to the date range.getActivityRegistrationsForCourseOffering(Id courseOfferingId) Gets allActivityRegistrationsrelated to a course offering.getActivityRegistrationsForCourseOfferingAndStudent(Id courseOfferingId, Id resourceId) Gets allActivityRegistrationsfor a given course offering and student.getActivityRegistrationsForCourseOfferingAndStudentOnDate(Id courseOfferingId, Id resourceId, DateTime from, DateTime to) Gets allActivityRegistrationsfor a course offering and student effective during the entire given date range inclusive but not confined to the date range.getActivityRegistrationsForCourseOfferingOnDate(Id courseOfferingId, DateTime from, DateTime to) Gets allActivityRegistrationsfor a course offering effective during the entire given date range inclusive but not confined to the date range.getActivityRegistrationsForRegistration(Id registrationId) Gets allActivityRegistrationsfor a registration.getActivityRegistrationsForRegistrationOnDate(Id registrationId, DateTime from, DateTime to) Gets allActivityRegistrationsfor a registration and effective during the entire given date range inclusive but not confined to the date range.getActivityRegistrationsForStudent(Id resourceId) Gets allActivityRegistrationsfor a given student.getActivityRegistrationsForStudentOnDate(Id resourceId, DateTime from, DateTime to) Gets allActivityRegistrationsfor a student during the entire given date range inclusive but not confined to the date range.getActivityRegistrationsOnDate(DateTime from, DateTime to) Gets allActivityRegistrationseffective during the entire given date range inclusive but not confined to the date range.Gets theCourseCatalogassociated with this session.Gets theCourseCatalogIdassociated with this session.voidAll activity registrations of any effective dates are returned by methods in this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidOnly activity registrations whose effective dates are current are returned by methods in this session.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theActivityRegistrationreturns is desired.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getCourseCatalogId
Id getCourseCatalogId()Gets theCourseCatalogIdassociated with this session.- Returns:
- the
CourseCatalog Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getCourseCatalog
Gets theCourseCatalogassociated with this session.- Returns:
- the course catalog
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupActivityRegistrations
boolean canLookupActivityRegistrations()Tests if this user can performActivityRegistrationlookups. 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 aPERMISSION_DENIED. This is intended as a hint to an application that may not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeActivityRegistrationView
void useComparativeActivityRegistrationView()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.
-
usePlenaryActivityRegistrationView
void usePlenaryActivityRegistrationView()A complete view of theActivityRegistrationreturns 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.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedCourseCatalogView
void useFederatedCourseCatalogView()Federates the view for methods in this session. A federated view will include activity registrations in catalogs which are children of this catalog in the course catalog hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedCourseCatalogView
void useIsolatedCourseCatalogView()Isolates the view for methods in this session. An isolated view restricts retrievals to this course catalog only.- Compliance:
mandatory- This method is must be implemented.
-
useEffectiveActivityRegistrationView
void useEffectiveActivityRegistrationView()Only activity registrations whose effective dates are current are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveActivityRegistrationView
void useAnyEffectiveActivityRegistrationView()All activity registrations of any effective dates are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getActivityRegistration
ActivityRegistration getActivityRegistration(Id activityRegistrationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theActivityRegistrationspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedActivityRegistrationmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aCourseand retained for compatibility. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityRegistrationId- theIdof theActivityRegistrationto retrieve- Returns:
- the returned
ActivityRegistration - Throws:
NotFoundException- noActivityRegistrationfound with the givenIdNullArgumentException-activityRegistrationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsByIds
ActivityRegistrationList getActivityRegistrationsByIds(IdList activityRegistrationIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets anActivityRegistrationListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the activity registrations specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleActivityRegistrationsmay be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityRegistrationIds- the list ofIdsto retrieve- Returns:
- the returned
ActivityRegistrationlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-activityRegistrationIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsByGenusType
ActivityRegistrationList getActivityRegistrationsByGenusType(Type activityRegistrationGenusType) throws OperationFailedException, PermissionDeniedException Gets anActivityRegistrationListcorresponding to the given activity registration genusTypewhich does not include activity registrations of types derived from the specifiedType. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those activity registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityRegistrationGenusType- an activity registration genus type- Returns:
- the returned
ActivityRegistrationlist - Throws:
NullArgumentException-activityRegistrationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsByParentGenusType
ActivityRegistrationList getActivityRegistrationsByParentGenusType(Type activityRegistrationGenusType) throws OperationFailedException, PermissionDeniedException Gets anActivityRegistrationListcorresponding to the given course genusTypeand include any additional activity registrations with genus types derived from the specifiedType. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those activity registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityRegistrationGenusType- an activity registration genus type- Returns:
- the returned
ActivityRegistrationlist - Throws:
NullArgumentException-activityRegistrationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsByRecordType
ActivityRegistrationList getActivityRegistrationsByRecordType(Type activityRegistrationRecordType) throws OperationFailedException, PermissionDeniedException Gets anActivityRegistrationListcontaining the given activity registration recordType. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those activity registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityRegistrationRecordType- an activity registration record type- Returns:
- the returned
ActivityRegistrationlist - Throws:
NullArgumentException-activityRegistrationRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsOnDate
ActivityRegistrationList getActivityRegistrationsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationseffective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
from- start of date rangeto- end of date range- Returns:
- a list of
ActivityRegistrations - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForRegistration
ActivityRegistrationList getActivityRegistrationsForRegistration(Id registrationId) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor a registration. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
registrationId- a registrationId- Returns:
- a list of
ActivityRegistrations - Throws:
NullArgumentException-registrationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForRegistrationOnDate
ActivityRegistrationList getActivityRegistrationsForRegistrationOnDate(Id registrationId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor a registration 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 activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
registrationId- a registrationIdfrom- start of date rangeto- end of date range- Returns:
- a list of
ActivityRegistrations - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-registrationId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForActivity
ActivityRegistrationList getActivityRegistrationsForActivity(Id activityId) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsassociated with a givenActivity. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityId- an activityId- Returns:
- a list of
ActivityRegistrations - Throws:
NullArgumentException-activityIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForActivityOnDate
ActivityRegistrationList getActivityRegistrationsForActivityOnDate(Id activityId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor the given activity 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 activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityId- an activityIdfrom- start of date rangeto- end of date range- Returns:
- a list of
ActivityRegistrations - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-activityId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForStudent
ActivityRegistrationList getActivityRegistrationsForStudent(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor a given student. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
resourceId- a resourceId- Returns:
- a list of
ActivityRegistrations - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForStudentOnDate
ActivityRegistrationList getActivityRegistrationsForStudentOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor 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 activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
resourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- a list of
ActivityRegistrations - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForActivityAndStudent
ActivityRegistrationList getActivityRegistrationsForActivityAndStudent(Id activityId, Id resourceId) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor a given activity and student. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityId- an activityIdresourceId- a resourceId- Returns:
- a list of
ActivityRegistrations - Throws:
NullArgumentException-activityIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForActivityAndStudentOnDate
ActivityRegistrationList getActivityRegistrationsForActivityAndStudentOnDate(Id activityId, Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor an activity 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 activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
activityId- an activityIdresourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- a list of
ActivityRegistrations - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-activityId, resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForCourseOffering
ActivityRegistrationList getActivityRegistrationsForCourseOffering(Id courseOfferingId) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsrelated to a course offering. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
courseOfferingId- a course offeringId- Returns:
- a list of
ActivityRegistrations - Throws:
NullArgumentException-courseOfferingIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForCourseOfferingOnDate
ActivityRegistrationList getActivityRegistrationsForCourseOfferingOnDate(Id courseOfferingId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor a course offering effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
courseOfferingId- a course offeringIdfrom- start of date rangeto- end of date range- Returns:
- a list of
ActivityRegistrations - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-courseOfferingId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForCourseOfferingAndStudent
ActivityRegistrationList getActivityRegistrationsForCourseOfferingAndStudent(Id courseOfferingId, Id resourceId) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor a given course offering and student. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
courseOfferingId- a course offeringIdresourceId- a resourceId- Returns:
- a list of
ActivityRegistrations - Throws:
NullArgumentException-courseOfferingIdorresourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrationsForCourseOfferingAndStudentOnDate
ActivityRegistrationList getActivityRegistrationsForCourseOfferingAndStudentOnDate(Id courseOfferingId, Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets allActivityRegistrationsfor a course offering and student effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Parameters:
courseOfferingId- a course offeringIdresourceId- a resourceIdfrom- start of date rangeto- end of date range- Returns:
- a list of
ActivityRegistrations - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-courseOfferingId, resourceId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getActivityRegistrations
ActivityRegistrationList getActivityRegistrations() throws OperationFailedException, PermissionDeniedExceptionGets allActivityRegistrations. In plenary mode, the returned list contains all known activity registrations or an error results. Otherwise, the returned list may contain only those activity registrations that are accessible through this session. In effective mode, activity registrations are returned that are currently effective. In any effective mode, effective activity registrations and those currently expired are returned.- Returns:
- a list of
ActivityRegistrations - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-