public interface AddressBookNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to AddressBook 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 AddressBook
object itself. Adding and removing contacts result in
notifications available from the notification session for contacts.
| Modifier and Type | Method and Description |
|---|---|
void |
acknowledgeAddressBookNotification(Id notificationId)
Acknowledge an address book notification.
|
boolean |
canRegisterForAddressBookNotifications()
Tests if this user can register for
AddressBook
notifications. |
void |
registerForChangedAddressBook(Id addressBookId)
Registers for notification of an updated address book.
|
void |
registerForChangedAddressBookHierarchy()
Registers for notification of an updated address book hierarchy
structure.
|
void |
registerForChangedAddressBookHierarchyForAncestors(Id addressBookId)
Registers for notification of an updated address book hierarchy
structure.
|
void |
registerForChangedAddressBookHierarchyForDescendants(Id addressBookId)
Registers for notification of an updated address book hierarchy
structure.
|
void |
registerForChangedAddressBooks()
Registers for notification of updated address books.
|
void |
registerForDeletedAddressBook(Id addressBookId)
Registers for notification of a deleted address book.
|
void |
registerForDeletedAddressBooks()
Registers for notification of deleted address books.
|
void |
registerForNewAddressBooks()
Register for notifications of new address books.
|
void |
reliableAddressBookNotifications()
Reliable notifications are desired.
|
void |
unreliableAddressBookNotifications()
Unreliable notifications are desired.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseboolean canRegisterForAddressBookNotifications()
AddressBook
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 reliableAddressBookNotifications()
acknowledgeAddressBookNotification() .mandatory - This method is must be implemented. void unreliableAddressBookNotifications()
mandatory - This method is must be implemented. void acknowledgeAddressBookNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId - the Id of the notificationOperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForNewAddressBooks()
throws OperationFailedException,
PermissionDeniedException
AddressBookReceiver.newAddressBooks() is invoked when a new
AddressBook is created.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAddressBooks()
throws OperationFailedException,
PermissionDeniedException
AddressBookReceiver.changedAddressBooks() is invoked when an
address book is changed.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAddressBook(Id addressBookId) throws OperationFailedException, PermissionDeniedException
AddressBookReceiver.changedAddressBooks() is invoked when the
specified address book is changed.addressBookId - the Id of the AddressBook
to monitorNullArgumentException - addressBookId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedAddressBooks()
throws OperationFailedException,
PermissionDeniedException
AddressBookReceiver.deletedAddressBooks() is invoked when an
address book is deleted.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForDeletedAddressBook(Id addressBookId) throws OperationFailedException, PermissionDeniedException
AddressBookReceiver.deletedAddressBooks() is invoked when the
specified address book is deleted.addressBookId - the Id of the AddressBook
to monitorNullArgumentException - addressBookId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAddressBookHierarchy()
throws OperationFailedException,
PermissionDeniedException
AddressBookReceiver.changedChildOfAddressBooks()
is invoked when a node experiences a change in its children.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAddressBookHierarchyForAncestors(Id addressBookId) throws OperationFailedException, PermissionDeniedException
AddressBookReceiver.changedChildOfAddressBooks()
is invoked when the specified node or any of its ancestors
experiences a change in its children.addressBookId - the Id of the AddressBook
node to monitorNullArgumentException - addressBookId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void registerForChangedAddressBookHierarchyForDescendants(Id addressBookId) throws OperationFailedException, PermissionDeniedException
AddressBookReceiver.changedChildOfAddressBooks()
is invoked when the specified node or any of its descendants
experiences a change in its children.addressBookId - the Id of the AddressBook
node to monitorNullArgumentException - addressBookId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.