public interface OfficeNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Office
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 |
canRegisterForOfficeNotifications()
Tests if this user can register for
Office
notifications. |
void |
registerForChangedOffice(Id officeId)
Registers for notification of an updated office.
|
void |
registerForChangedOffices()
Registers for notification of updated offices.
|
void |
registerForDeletedOffice(Id officeId)
Registers for notification of a deleted office.
|
void |
registerForDeletedOfficeAncestors(Id officeId)
Registers for notification if an ancestor is removed from the
specified office in the office hierarchy.
|
void |
registerForDeletedOfficeDescendants(Id officeId)
Registers for notification if a descendant is removed from fthe
specified office in the office hierarchy.
|
void |
registerForDeletedOffices()
Registers for notification of deleted offices.
|
void |
registerForNewOfficeAncestors(Id officeId)
Registers for notification if an ancestor is added to the specified
office in the office hierarchy.
|
void |
registerForNewOfficeDescendants(Id officeId)
Registers for notification if a descendant is added to the specified
office in the office hierarchy.
|
void |
registerForNewOffices()
Register for notifications of new offices.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForOfficeNotifications()
Office
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 registerForNewOffices() throws OperationFailedException, PermissionDeniedException
OfficeReceiver.newOffices()
is invoked when a new
Office
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewOfficeAncestors(Id officeId) throws OperationFailedException, PermissionDeniedException
OfficeReceiver.newOfficeAncestor()
is invoked when the
specified office experiences an addition in ancestry.officeId
- the Id
of the office to monitorNullArgumentException
- officeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewOfficeDescendants(Id officeId) throws OperationFailedException, PermissionDeniedException
OfficeReceiver.newOfficeDescendant()
is invoked when the
specified office experiences an addition in descendants.officeId
- the Id
of the office to monitorNullArgumentException
- officeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOffices() throws OperationFailedException, PermissionDeniedException
OfficeReceiver.changedOffices()
is invoked when an office is
changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedOffice(Id officeId) throws OperationFailedException, PermissionDeniedException
OfficeReceiver.changedOffices()
is invoked when the specified
office is changed.officeId
- the Id of the Office
to monitorNullArgumentException
- officeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOffices() throws OperationFailedException, PermissionDeniedException
OfficeReceiver.deletedOffices()
is invoked when an office is
deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOffice(Id officeId) throws OperationFailedException, PermissionDeniedException
OfficeReceiver.deletedOffices()
is invoked when the specified
office is deleted.officeId
- the Id
of the Office
to
monitorNullArgumentException
- officeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOfficeAncestors(Id officeId) throws OperationFailedException, PermissionDeniedException
OfficeReceiver.deletedOfficeAncestor()
is invoked when the
specified office experiences a removal of an ancestor.officeId
- the Id
of the office to monitorNullArgumentException
- officeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedOfficeDescendants(Id officeId) throws OperationFailedException, PermissionDeniedException
OfficeReceiver.deletedOfficeDescednant()
is invoked when the
specified office experiences a removal of one of its descdendents.officeId
- the Id
of the office to monitorNullArgumentException
- officeId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.