public interface CourseOfferingNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to CourseOffering
objects in this CourseCatalog.
This also includes existing course offerings 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 two views defined in this session correspond to the views in the
CourseOfferingLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeCourseOfferingNotification(Id notificationId)
Acknowledge a course offering notification.
|
boolean |
canRegisterForCourseOfferingNotifications()
Tests if this user can register for
CourseOffering
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedCourseOffering(Id courseOfferingId)
Registers for notification of an updated course offering.
|
void |
registerForChangedCourseOfferings()
Registers for notification of updated courses.
|
void |
registerForChangedCourseOfferingsForCourse(Id courseId)
Registers for notification of a changed course offering for a given
course.
|
void |
registerForChangedCourseOfferingsForTerm(Id termId)
Registers for notification of a changed course offering for a given
term.
|
void |
registerForDeletedCourseOffering(Id courseOfferingId)
Registers for notification of a deleted course offering.
|
void |
registerForDeletedCourseOfferings()
Registers for notification of deleted courses.
|
void |
registerForDeletedCourseOfferingsForCourse(Id courseId)
Registers for notification of a deleted course offering for a given
course.
|
void |
registerForDeletedCourseOfferingsForTerm(Id termId)
Registers for notification of a deleted course offering for a given
term.
|
void |
registerForNewCourseOfferings()
Register for notifications of new course offerings.
|
void |
registerForNewCourseOfferingsForCourse(Id courseId)
Registers for notification of a new course offering for a given
course.
|
void |
registerForNewCourseOfferingsForTerm(Id termId)
Registers for notification of a new course offering for a given term.
|
void |
reliableCourseOfferingNotifications()
Reliable notifications are desired.
|
void |
unreliableCourseOfferingNotifications()
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 canRegisterForCourseOfferingNotifications()
CourseOffering
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 reliableCourseOfferingNotifications()
acknowledgeCourseOfferingNotification()
.mandatory
- This method is must be implemented. void unreliableCourseOfferingNotifications()
mandatory
- This method is must be implemented. void acknowledgeCourseOfferingNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCourseOfferings() throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.newCourseOfferings()
is invoked when a
new CourseOffering
appears in this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCourseOfferingsForCourse(Id courseId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.newCourseOfferings()
is
invoked when a new course offering appears in this course catalog.courseId
- the Id
of the Course
to
monitorNullArgumentException
- courseId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCourseOfferingsForTerm(Id termId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.newCourseOfferings()
is invoked
when a new course offering appears in this course catalog.termId
- the Id
of the Term
to
monitorNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCourseOfferings() throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.changedCourseOfferings()
is invoked
when a course in this course catalog is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCourseOfferingsForCourse(Id courseId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.newCourseOfferings()
is
invoked when a course offering in this course catalog is updated.courseId
- the Id
of the Course
to
monitorNullArgumentException
- courseId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCourseOfferingsForTerm(Id termId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.newCourseOfferings()
is
invoked when a course offering in this course catalog is updated.termId
- the Id
of the Term
to
monitorNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCourseOffering(Id courseOfferingId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.changedCourseOfferings()
is invoked
when the specified course offering 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 registerForDeletedCourseOfferings() throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.deletedCourseOfferings()
is invoked
when a course offering is deleted or removed from this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCourseOfferingsForCourse(Id courseId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.newCourseOfferings()
is
invoked when a course offering is removed from this course catalog.courseId
- the Id
of the Course
to
monitorNullArgumentException
- courseId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCourseOfferingsForTerm(Id termId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.newCourseOfferings()
is
invoked when a course offering is removed from this course catalog.termId
- the Id
of the Term
to
monitorNullArgumentException
- termId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCourseOffering(Id courseOfferingId) throws OperationFailedException, PermissionDeniedException
CourseOfferingReceiver.deletedCourseOfferings()
is invoked
when the specified course offering 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.