public interface CampusNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Campus
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 Campus
object itself. Adding and removing rooms result in notifications available
from the notification session for rooms.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForCampusNotifications()
Tests if this user can register for
Campus
notifications. |
void |
registerForChangedCampus(Id campusId)
Registers for notification of an updated campus.
|
void |
registerForChangedCampuses()
Registers for notification of updated campuses.
|
void |
registerForDeletedCampus(Id campusId)
Registers for notification of a deleted campus.
|
void |
registerForDeletedCampusAncestors(Id campusId)
Registers for notification of an updated hierarchy structure that
removes an ancestor of the specified campus
CampusReceiver.deletedAncestor() is invoked when the specified
campus node loses an ancestor. |
void |
registerForDeletedCampusDescendants(Id campusId)
Registers for notification of an updated hierarchy structure that
removes a descendant of the specified campus.
|
void |
registerForDeletedCampuses()
Registers for notification of deleted campuses.
|
void |
registerForNewCampusAncestors(Id campusId)
Registers for notification of an updated hierarchy structure that
introduces a new ancestor of the specified campus.
|
void |
registerForNewCampusDescendants(Id campusId)
Registers for notification of an updated hierarchy structure that
introduces a new descendant of the specified campus.
|
void |
registerForNewCampuses()
Register for notifications of new campuses.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForCampusNotifications()
Campus
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 registerForNewCampuses() throws OperationFailedException, PermissionDeniedException
CampusReceiver.newCampus()
is invoked when a new Campus
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCampusAncestors(Id campusId) throws OperationFailedException, PermissionDeniedException
CampusReceiver.newAncestorCampus()
is invoked when the
specified campus node gets a new ancestor.campusId
- the Id
of the Campus
node to monitorNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewCampusDescendants(Id campusId) throws OperationFailedException, PermissionDeniedException
CampusReceiver.newDescendantCampus()
is invoked when the
specified campus node gets a new descendant.campusId
- the Id
of the Campus
node to monitorNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCampuses() throws OperationFailedException, PermissionDeniedException
CampusReceiver.changedCampus()
is invoked when a campus is
changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedCampus(Id campusId) throws OperationFailedException, PermissionDeniedException
CampusReceiver.changedCampus()
is invoked when the specified
campus is changed.campusId
- the Id
of the Campus
to
monitorNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCampuses() throws OperationFailedException, PermissionDeniedException
CampusReceiver.deletedCampus()
is invoked when a campus is
deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCampus(Id campusId) throws OperationFailedException, PermissionDeniedException
CampusReceiver.deletedCampus()
is invoked when the specified
campus is deleted.campusId
- the Id
of the Campus
to
monitorNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCampusAncestors(Id campusId) throws OperationFailedException, PermissionDeniedException
CampusReceiver.deletedAncestor()
is invoked when the specified
campus node loses an ancestor.campusId
- the Id
of the Campus
to
monitorNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedCampusDescendants(Id campusId) throws OperationFailedException, PermissionDeniedException
CampusReceiver.deletedDescendant()
is invoked when the
specified campus node loses a descendant.campusId
- the Id
of the Campus
to
monitorNullArgumentException
- campusId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.