public interface EnrollmentNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Enrollment
objects in this CourseCatalog.
This also includes existing enrollments 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
EnrollmentLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeEnrollmentNotification(Id notificationId)
Acknowledge an enrollment notification.
|
boolean |
canRegisterForEnrollmentNotifications()
Tests if this user can register for
Enrollment
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedEnrollment(Id enrollmentId)
Registers for notification of an updated enrollment.
|
void |
registerForChangedEnrollments()
Registers for notification of updated enrollments.
|
void |
registerForChangedEnrollmentsForProgramOffering(Id programOfferingId)
Registers for notification of updated enrollments for the given
program offering.
|
void |
registerForChangedEnrollmentsForStudent(Id studentId)
Registers for notification of updated enrollments for the given
student.
|
void |
registerForDeletedEnrollment(Id enrollmentId)
Registers for notification of a deleted enrollment.
|
void |
registerForDeletedEnrollments()
Registers for notification of deleted enrollments.
|
void |
registerForDeletedEnrollmentsForProgramOffering(Id programOfferingId)
Registers for notification of deleted enrollments for the given
program offering.
|
void |
registerForDeletedEnrollmentsForStudent(Id studentId)
Registers for notification of deleted enrollments for the given
student.
|
void |
registerForNewEnrollments()
Register for notifications of new enrollments.
|
void |
registerForNewEnrollmentsForProgramOffering(Id programOfferingId)
Register for notifications of new enrollments for the given program
offering.
|
void |
registerForNewEnrollmentsForStudent(Id studentId)
Register for notifications of new enrollments for the given student.
|
void |
reliableEnrollmentNotifications()
Reliable notifications are desired.
|
void |
unreliableEnrollmentNotifications()
Unreliable notifications are desired.
|
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 canRegisterForEnrollmentNotifications()
Enrollment
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 reliableEnrollmentNotifications()
acknowledgeEnrollmentNotification()
.mandatory
- This method is must be implemented. void unreliableEnrollmentNotifications()
mandatory
- This method is must be implemented. void acknowledgeEnrollmentNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEnrollments() throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.newEnrollments()
is invoked when a new
Enrollment
appears in this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEnrollmentsForProgramOffering(Id programOfferingId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.newEnrollments()
is
invoked when a new Enrollment
appears in this course
catalog.programOfferingId
- the Id
of the
ProgramOffering
to monitorNullArgumentException
- programOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewEnrollmentsForStudent(Id studentId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.newEnrollments()
is invoked when a
new Enrollment
appears in this course catalog.studentId
- the Id
of the Resource
to monitorNullArgumentException
- studentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEnrollments() throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.changedEnrollments()
is invoked when an
enrollment in this course catalog is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEnrollmentsForProgramOffering(Id programOfferingId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.changedEnrollments()
is invoked when an enrollment in this course catalog is
changed.programOfferingId
- the Id
of the
ProgramOffering
to monitorNullArgumentException
- programOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEnrollmentsForStudent(Id studentId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.changedEnrollments()
is
invoked when a course in this course catalog is changed.studentId
- the Id
of the Resource
to monitorNullArgumentException
- studentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedEnrollment(Id enrollmentId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.changedEnrollments()
is invoked when the
specified enrollment in this course catalog is changed.enrollmentId
- the Id
of the Enrollment
to monitorNullArgumentException
- enrollmentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEnrollments() throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.deletedEnrollments()
is invoked when an
enrollment is deleted or removed from this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEnrollmentsForProgramOffering(Id programOfferingId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.deletedEnrollments()
is invoked when an enrollment is deleted or removed from this
course catalog.programOfferingId
- the Id
of the
ProgramOffering
to monitorNullArgumentException
- programOfferingId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEnrollmentsForStudent(Id studentId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.deletedEnrollments()
is
invoked when an enrollment is deleted or removed from this course
catalog.studentId
- the Id
of the Resource
to monitorNullArgumentException
- studentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedEnrollment(Id enrollmentId) throws OperationFailedException, PermissionDeniedException
EnrollmentReceiver.deletedEnrollments()
is invoked when the
specified enrollment is deleted or removed from this course catalog.enrollmentId
- the Id
of the Enrollment
to monitorNullArgumentException
- enrollmentId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.