public interface AddressNotificationSession extends OsidSession
This session defines methods to receive notifications on adds/changes
to Address
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 Address
object itself. Adding and removing contacts result in notifications
available from the notification session for contacts.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeAddressNotification(Id notificationId)
Acknowledge an address notification.
|
boolean |
canRegisterForAddressNotifications()
Tests if this user can register for
Address
notifications. |
AddressBook |
getAddressBook()
Gets the
AddressBook associated with this session. |
Id |
getAddressBookId()
Gets the
AddressBook Id associated with
this session. |
void |
registerForChangedAddress(Id addressId)
Registers for notification of an updated address.
|
void |
registerForChangedAddresses()
Registers for notification of updated addresses.
|
void |
registerForDeletedAddress(Id addressId)
Registers for notification of a deleted address.
|
void |
registerForDeletedAddresses()
Registers for notification of deleted addresses.
|
void |
registerForNewAddresses()
Register for notifications of new addresses.
|
void |
reliableAddressNotifications()
Reliable notifications are desired.
|
void |
unreliableAddressNotifications()
Unreliable notifications are desired.
|
void |
useFederatedAddressBookView()
Federates the view for methods in this session.
|
void |
useIsolatedAddressBookView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getAddressBookId()
AddressBook
Id
associated with
this session. AddressBook Id
associated with this sessionmandatory
- This method must be implemented. AddressBook getAddressBook() throws OperationFailedException, PermissionDeniedException
AddressBook
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForAddressNotifications()
Address
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 useFederatedAddressBookView()
mandatory
- This method is must be implemented. void useIsolatedAddressBookView()
mandatory
- This method is must be implemented. void reliableAddressNotifications()
acknowledgeAddressNotification()
.mandatory
- This method is must be implemented. void unreliableAddressNotifications()
mandatory
- This method is must be implemented. void acknowledgeAddressNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewAddresses() throws OperationFailedException, PermissionDeniedException
AddressReceiver.newAddresses()
is invoked when a new
Address
is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAddresses() throws OperationFailedException, PermissionDeniedException
AddressReceiver.changedAddresses()
is invoked when an address
is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedAddress(Id addressId) throws OperationFailedException, PermissionDeniedException
AddressReceiver.changedAddresses()
is invoked when the
specified address is changed.addressId
- the Id
of the Address
to monitorNullArgumentException
- addressId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAddresses() throws OperationFailedException, PermissionDeniedException
AddressReceiver.deletedAddresses()
is invoked when an address
is deleted.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedAddress(Id addressId) throws OperationFailedException, PermissionDeniedException
AddressReceiver.deletedAddresses()
is invoked when the
specified address is deleted.addressId
- the Id
of the Address
to monitorNullArgumentException
- addressId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.