public interface BankNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Bank
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 |
---|---|
void |
acknowledgeBankNotification(Id notificationId)
Acknowledge a bank notification.
|
boolean |
canRegisterForBankNotifications()
Tests if this user can register for
Bank notifications. |
void |
registerForChangedBank(Id bankId)
Registers for notification of an updated bank.
|
void |
registerForChangedBankHierarchy()
Registers for notification of an updated bank hierarchy structure.
|
void |
registerForChangedBankHierarchyForAncestors(Id bankId)
Registers for notification of an updated bank hierarchy structure.
|
void |
registerForChangedBankHierarchyForDescendants(Id bankId)
Registers for notification of an updated bank hierarchy structure.
|
void |
registerForChangedBanks()
Registers for notification of updated banks.
|
void |
registerForDeletedBank(Id bankId)
Registers for notification of a deleted bank.
|
void |
registerForDeletedBanks()
Registers for notification of deleted banks.
|
void |
registerForNewBanks()
Register for notifications of new banks.
|
void |
reliableBankNotifications()
Reliable notifications are desired.
|
void |
unreliableBankNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canRegisterForBankNotifications()
Bank
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 reliableBankNotifications()
acknowledgeBankNotification()
.mandatory
- This method is must be implemented. void unreliableBankNotifications()
mandatory
- This method is must be implemented. void acknowledgeBankNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewBanks() throws OperationFailedException, PermissionDeniedException
BankReceiver.newBanks()
is invoked when a new Bank is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForChangedBanks() throws OperationFailedException, PermissionDeniedException
BankReceiver.changedBanks()
is invoked when a bank is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForChangedBank(Id bankId) throws OperationFailedException, PermissionDeniedException
BankReceiver.changedBanks()
is invoked when the specified bank
is changed.bankId
- the Id of the bank to monitorNullArgumentException
- bankId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForDeletedBanks() throws OperationFailedException, PermissionDeniedException
BankReceiver.deletedBanks()
is invoked when a bank is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForDeletedBank(Id bankId) throws OperationFailedException, PermissionDeniedException
BankReceiver.deletedBanks()
is invoked when the specified bank
is deleted.bankId
- the Id of the bank to monitorNullArgumentException
- bankId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void registerForChangedBankHierarchy() throws OperationFailedException, PermissionDeniedException
BankReceiver.changedChildOfBanks()
is invoked when a
node experiences a change in its children.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBankHierarchyForAncestors(Id bankId) throws OperationFailedException, PermissionDeniedException
BankReceiver.changedChildOfBanks()
is invoked when the
specified node or any of its ancestors experiences a change in its
children.bankId
- the Id
of the Bank
node
to monitorNullArgumentException
- bankId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedBankHierarchyForDescendants(Id bankId) throws OperationFailedException, PermissionDeniedException
BankReceiver.changedChildOfBanks()
is invoked when the
specified node or any of its descendants experiences a change in its
children.bankId
- the Id
of the Bank
node
to monitorNullArgumentException
- bankId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.