public interface ProgramEntryNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to ProgramEntry
objects in this CourseCatalog.
This also includes existing courses 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
ProgramEntryLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeProgramEntryNotification(Id notificationId)
Acknowledge a program entry notification.
|
boolean |
canRegisterForProgramEntryNotifications()
Tests if this user can register for
ProgramEntry
notifications. |
CourseCatalog |
getCourseCatalog()
Gets the
CourseCatalog associated with this session. |
Id |
getCourseCatalogId()
Gets the
CourseCatalog Id associated
with this session. |
void |
registerForChangedProgramEntries()
Registers for notification of updated program entries.
|
void |
registerForChangedProgramEntriesForProgram(Id programId)
Registers for notification of updated program entries for the given
program.
|
void |
registerForChangedProgramEntriesForStudent(Id resourceId)
Registers for notification of updated program entries for the given
student.
|
void |
registerForChangedProgramEntry(Id programEntryId)
Registers for notification of an updated program entry.
|
void |
registerForDeletedProgramEntries()
Registers for notification of deleted program entries.
|
void |
registerForDeletedProgramEntriesForProgram(Id programId)
Registers for notification of deleted program entries for the given
program.
|
void |
registerForDeletedProgramEntriesForStudent(Id resourceId)
Registers for notification of deleted program entries for the given
student.
|
void |
registerForDeletedProgramEntry(Id programEntryId)
Registers for notification of a deleted program entry.
|
void |
registerForNewProgramEntries()
Register for notifications of new program entries.
|
void |
registerForNewProgramEntriesForProgram(Id programId)
Registers for notification of new program entries for the given
program.
|
void |
registerForNewProgramEntriesForStudent(Id resourceId)
Registers for notification of new program entries for the given
student.
|
void |
reliableProgramEntryNotifications()
Reliable notifications are desired.
|
void |
unreliableProgramEntryNotifications()
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 canRegisterForProgramEntryNotifications()
ProgramEntry
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 reliableProgramEntryNotifications()
acknowledgeProgramEntryNotification()
.mandatory
- This method is must be implemented. void unreliableProgramEntryNotifications()
mandatory
- This method is must be implemented. void acknowledgeProgramEntryNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProgramEntries() throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.newProgramEntries()
is invoked when a new
ProgramEntry
appears in this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProgramEntriesForStudent(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.newProgramEntries()
is
invoked when a new program entry appears in this course catalog.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProgramEntriesForProgram(Id programId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.newProgramEntries()
is
invoked when a new program entry appears in this course catalog.programId
- the Id
of the Program
to monitorNullArgumentException
- programId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramEntries() throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.changedProgramEntries()
is invoked when a
program entry in this course catalog is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramEntriesForStudent(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.changedProgramEntries()
is invoked when a program entry in this course catalog is changed.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramEntriesForProgram(Id programId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.changedProgramEntries()
is invoked when a program entry in this course catalog is changed.programId
- the Id
of the Program
to monitorNullArgumentException
- programId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProgramEntry(Id programEntryId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.changedProgramEntries()
is invoked when
the specified program entry in this course catalog is changed.programEntryId
- the Id
of the
ProgramEntry
to monitorNullArgumentException
- programEntryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramEntries() throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.deletedProgramEntries()
is invoked when a
program entry is deleted or removed from this course catalog.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramEntriesForStudent(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.deletedProgramEntries()
is invoked when a program entry is removed from this course catalog.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramEntriesForProgram(Id programId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.deletedProgramEntries()
is invoked when a program entry is removed from this course catalog.programId
- the Id
of the Program
to monitorNullArgumentException
- programId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProgramEntry(Id programEntryId) throws OperationFailedException, PermissionDeniedException
ProgramEntryReceiver.deletedProgramEntries()
is invoked when
the specified program entry is deleted or removed from this course
catalog.programEntryId
- the Id
of the
ProgramEntry
to monitorNullArgumentException
- programEntryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.