public interface RegistrationNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Registration
objects in this CourseCatalog.
This also includes existing registrations that may appear or
disappear due to changes in the CourseCatalog
hierarchy,
This session is intended for consumers needing to synchronize their state
with this service without the use of polling. Notifications are cancelled
when this session is closed.
The views defined in this session correspond to the views in the
RegistrationLookupSession.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForRegistrationNotifications()
Tests if this user can register for
Registration
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedRegistration(Id registrationId)
Registers for notification of an updated registration.
|
void |
registerForChangedRegistrations()
Registers for notification of updated registrations.
|
void |
registerForChangedRegistrationsForActivityBundle(Id activityBundleId)
Registers for notification of updated registrations for the given
activity bundle.
|
void |
registerForChangedRegistrationsForCourseOffering(Id courseOfferingId)
Registers for notification of updated registrations for the given
course offering.
|
void |
registerForChangedRegistrationsForStudent(Id resourceId)
Registers for notification of updated registrations for the given
student.
|
void |
registerForDeletedRegistration(Id registrationId)
Registers for notification of a deleted registration.
|
void |
registerForDeletedRegistrations()
Registers for notification of deleted registrations.
|
void |
registerForDeletedRegistrationsForActivityBundle(Id activityBundleId)
Registers for notification of deleted registrations for the given
activity bundle.
|
void |
registerForDeletedRegistrationsForCourseOffering(Id courseOfferingId)
Registers for notification of deleted registrations for the given
course offering.
|
void |
registerForDeletedRegistrationsForStudent(Id resourceId)
Registers for notification of deleted registrations for the given
student.
|
void |
registerForNewRegistrations()
Register for notifications of new registrations.
|
void |
registerForNewRegistrationsForActivityBundle(Id activityBundleId)
Register for notifications of new registrations for the given activity
bundle.
|
void |
registerForNewRegistrationsForCourseOffering(Id courseOfferingId)
Register for notifications of new registrations for the given course
offering.
|
void |
registerForNewRegistrationsForStudent(Id resourceId)
Register for notifications of new registrations for the given sudent
resource.
|
void |
useFederatedCourseCatalogView()
Federates the view for methods in this session.
|
void |
useIsolatedCourseCatalogView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getCourseCatalogId()
CourseCatalog
Id
associated
with this session. CourseCatalog Id
associated with this
sessionmandatory
- This method must be implemented. CourseCatalog getCourseCatalog() throws OperationFailedException, PermissionDeniedException
CourseCatalog
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForRegistrationNotifications()
Registration
notifications. 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 notification operations. false
if notification methods are not
authorized, true
otherwisemandatory
- This method must be implemented. void useFederatedCourseCatalogView()
mandatory
- This method is must be implemented. void useIsolatedCourseCatalogView()
mandatory
- This method is must be implemented. void registerForNewRegistrations() throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.newRegistration()
is invoked when a new
Registration
appears in this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewRegistrationsForActivityBundle(Id activityBundleId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.newRegistration()
is
invoked when a new Registration
appears in this course
catalog.activityBundleId
- the Id
of the
ActivityBundle
to monitorNullArgumentException
- activityBundleId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewRegistrationsForCourseOffering(Id courseOfferingId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.newRegistration()
is
invoked when a new Registration
appears in this course
catalog.courseOfferingId
- the Id
of the
CourseOffering
to monitorNullArgumentException
- courseOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewRegistrationsForStudent(Id resourceId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.newRegistration()
is
invoked when a new Registration
appears in this course
catalog.resourceId
- the Id
of the student to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRegistrations() throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.changedRegistration()
is invoked when a
course in this course catalog is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRegistrationsForActivityBundle(Id activityBundleId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.changedRegistration()
is invoked when a course in this course catalog is changed.activityBundleId
- the Id
of the
ActivityBundle
to monitorNullArgumentException
- activityBundleId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRegistrationsForCourseOffering(Id courseOfferingId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.changedRegistration()
is invoked when a course in this course catalog is changed.courseOfferingId
- the Id
of the
CourseOffering
to monitorNullArgumentException
- courseOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRegistrationsForStudent(Id resourceId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.changedRegistration()
is
invoked when a course in this course catalog is changed.resourceId
- the Id
of the student to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedRegistration(Id registrationId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.changedRegistration()
is invoked when the
specified registration in this course catalog is changed.registrationId
- the Id
of the
Registration
to monitorNullArgumentException
- registrationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRegistrations() throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.deletedRegistration()
is invoked when a
registration is deleted or removed from this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRegistrationsForActivityBundle(Id activityBundleId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.deletedRegistration()
is invoked when a registration is deleted or removed from this
course catalog.activityBundleId
- the Id
of the
ActivityBundle
to monitorNullArgumentException
- activityBundleId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRegistrationsForCourseOffering(Id courseOfferingId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.deletedRegistration()
is invoked when a registration is deleted or removed from this
course catalog.courseOfferingId
- the Id
of the
CourseOffering
to monitorNullArgumentException
- courseOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRegistrationsForStudent(Id resourceId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.deletedRegistration()
is
invoked when a registration is deleted or removed from this course
catalog.resourceId
- the Id
of the student to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedRegistration(Id registrationId) throws OperationFailedException, PermissionDeniedException
RegistrationReceiver.deletedRegistration()
is invoked when the
specified registration is deleted or removed from this course catalog.registrationId
- the Id
of the
Registration
to monitorNullArgumentException
- registrationId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.