public interface FrontOfficeNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to FrontOffice
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.
Modifier and Type | Method and Description |
---|---|
boolean |
canRegisterForFrontOfficeNotifications()
Tests if this user can register for
FrontOffice
notifications. |
void |
registerForChangedFrontOffice(Id frontOfficeId)
Registers for notification of an updated front office.
|
void |
registerForChangedFrontOffices()
Registers for notification of updated frontOffices.
|
void |
registerForDeletedFrontOffice(Id frontOfficeId)
Registers for notification of a deleted front office.
|
void |
registerForDeletedFrontOfficeAncestors(Id frontOfficeId)
Registers for notification if an ancestor is removed from the
specified front office in the front office hierarchy.
|
void |
registerForDeletedFrontOfficeDescendants(Id frontOfficeId)
Registers for notification if a descendant is removed from fthe
specified front office in the front office hierarchy.
|
void |
registerForDeletedFrontOffices()
Registers for notification of deleted frontOffices.
|
void |
registerForNewFrontOfficeAncestors(Id frontOfficeId)
Registers for notification if an ancestor is added to the specified
front office in the front office hierarchy.
|
void |
registerForNewFrontOfficeDescendants(Id frontOfficeId)
Registers for notification if a descendant is added to the specified
front office in the front office hierarchy.
|
void |
registerForNewFrontOffices()
Register for notifications of new frontOffices.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForFrontOfficeNotifications()
FrontOffice
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 registerForNewFrontOffices() throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.newFrontOffices()
is invoked when a new
FrontOffice
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewFrontOfficeAncestors(Id frontOfficeId) throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.newFrontOfficeAncestor()
is invoked when
the specified front office experiences an addition in ancestry.frontOfficeId
- the Id
of the front office to
monitorNullArgumentException
- frontOfficeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewFrontOfficeDescendants(Id frontOfficeId) throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.newFrontOfficeDescendant()
is invoked when
the specified front office experiences an addition in descendants.frontOfficeId
- the Id
of the front office to
monitorNullArgumentException
- frontOfficeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedFrontOffices() throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.changedFrontOffices()
is invoked when a
front office is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedFrontOffice(Id frontOfficeId) throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.changedFrontOffices()
is invoked when the
specified front office is changed.frontOfficeId
- the Id of the FrontOffice
to
monitorNullArgumentException
- frontOfficeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFrontOffices() throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.deletedFrontOffices()
is invoked when a
front office is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFrontOffice(Id frontOfficeId) throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.deletedFrontOffices()
is invoked when the
specified front office is deleted.frontOfficeId
- the Id
of the FrontOffice
to monitorNullArgumentException
- frontOfficeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFrontOfficeAncestors(Id frontOfficeId) throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.deletedFrontOfficeAncestor()
is invoked
when the specified front office experiences a removal of an ancestor.frontOfficeId
- the Id
of the front office to
monitorNullArgumentException
- frontOfficeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedFrontOfficeDescendants(Id frontOfficeId) throws OperationFailedException, PermissionDeniedException
FrontOfficeReceiver.deletedFrontOfficeDescednant()
is invoked
when the specified front office experiences a removal of one of its
descdendents.frontOfficeId
- the Id
of the front office to
monitorNullArgumentException
- frontOfficeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.