public interface LessonNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Lesson
objects. 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.
Notifications are triggered with changes to the Lesson
object itself. Adding and removing syllabi result in notifications
available from the notification session for syllabi.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeLessonNotification(Id notificationId)
Acknowledge a lesson notification.
|
boolean |
canRegisterForLessonNotifications()
Tests if this user can register for
Lesson
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedLesson(Id lessonId)
Registers for notification of an updated lesson.
|
void |
registerForChangedLessons()
Registers for notification of updated lessons.
|
void |
registerForChangedLessonsForDocet(Id docetId)
Registers for notification of updated lessons of the given docet.
|
void |
registerForChangedLessonsForPlan(Id planId)
Registers for notification of updated lessons of the given plan.
|
void |
registerForDeletedLesson(Id lessonId)
Registers for notification of a deleted lesson.
|
void |
registerForDeletedLessons()
Registers for notification of deleted lessons.
|
void |
registerForDeletedLessonsForDocet(Id docetId)
Registers for notification of deleted lessons of the given docet.
|
void |
registerForDeletedLessonsForPlan(Id planId)
Registers for notification of deleted lessons of the given plan.
|
void |
registerForNewLessons()
Register for notifications of new lessons.
|
void |
registerForNewLessonsForDocet(Id docetId)
Registers for notification of new lessons of the given docet.
|
void |
registerForNewLessonsForPlan(Id planId)
Registers for notification of new lessons of the given plan.
|
void |
reliableLessonNotifications()
Reliable notifications are desired.
|
void |
unreliableLessonNotifications()
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 canRegisterForLessonNotifications()
Lesson
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 reliableLessonNotifications()
acknowledgeLessonNotification()
.mandatory
- This method is must be implemented. void unreliableLessonNotifications()
mandatory
- This method is must be implemented. void acknowledgeLessonNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewLessons() throws OperationFailedException, PermissionDeniedException
LessonReceiver.newLessons()
is invoked when a new
Lesson
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewLessonsForPlan(Id planId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.newLessons()
is invoked when a new
Lesson
is created.planId
- the Id
of the Plan
to
monitorNullArgumentException
- planId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewLessonsForDocet(Id docetId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.newLessons()
is invoked when a new
Lesson
is created.docetId
- the Id
of the Docet
to
monitorNullArgumentException
- docetId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLessons() throws OperationFailedException, PermissionDeniedException
LessonReceiver.changedLessons()
is invoked when a lesson is
changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLessonsForPlan(Id planId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.changedLessons()
is invoked when a a
lesson is changed.planId
- the Id
of the Plan
to
monitorNullArgumentException
- planId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLessonsForDocet(Id docetId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.changedLessons()
is invoked when a a
lesson is changed.docetId
- the Id
of the Docet
to
monitorNullArgumentException
- docetId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedLesson(Id lessonId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.changedLessons()
is invoked when the specified
lesson in this course catalog is changed.lessonId
- the Id
of the Lesson
to
monitorNullArgumentException
- lessonId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedLessons() throws OperationFailedException, PermissionDeniedException
LessonReceiver.deletedLesson()
is invoked when a lesson is in
this course catalog deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedLessonsForPlan(Id planId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.deletedLessons()
is invoked when a
lesson in this course catalog is removed.planId
- the Id
of the Plan
to
monitorNullArgumentException
- planId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedLessonsForDocet(Id docetId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.deletedLessons()
is invoked when a
lesson in this course catalog is removed.docetId
- the Id
of the Docet
to
monitorNullArgumentException
- docetId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedLesson(Id lessonId) throws OperationFailedException, PermissionDeniedException
LessonReceiver.deletedLessons()
is invoked when the specified
lesson is deleted.lessonId
- the Id
of the Lesson
to
monitorNullArgumentException
- lessonId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.