public interface ProfileItemNotificationSession extends OsidSession
This session defines methods to receive asynchronous notifications on
adds/changes to ProfileItem
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.
The two views defined in this session correspond to the views in the
ProfileItemLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeProfileItemNotification(Id notificationId)
Acknowledge a profile item notification.
|
boolean |
canRegisterForProfileItemNotifications()
Tests if this user can register for
ProfileItem
notifications. |
Profile |
getProfile()
Gets the
Profile associated with this session. |
Id |
getProfileId()
Gets the
Profile Id associated with this
session. |
void |
registerForChangedProfileItem(Id profileItemId)
Registers for notification of an updated profile item.
|
void |
registerForChangedProfileItems()
Registers for notification of updated profile items.
|
void |
registerForDeletedProfileItem(Id profileItemId)
Registers for notification of a deleted profile item.
|
void |
registerForDeletedProfileItems()
Registers for notification of deleted profile items.
|
void |
registerForNewProfileItems()
Register for notifications of new pofile items.
|
void |
reliableProfileItemNotifications()
Reliable notifications are desired.
|
void |
unreliableProfileItemNotifications()
Unreliable notifications are desired.
|
void |
useFederatedProfileView()
Federates the view for methods in this session.
|
void |
useIsolatedProfileView()
Isolates the view for methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getProfileId()
Profile
Id
associated with this
session. Profile Id
associated with this sessionmandatory
- This method must be implemented. Profile getProfile() throws OperationFailedException, PermissionDeniedException
Profile
associated with this session. Profile
associated with this sessionOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canRegisterForProfileItemNotifications()
ProfileItem
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 useFederatedProfileView()
mandatory
- This method is must be implemented. void useIsolatedProfileView()
mandatory
- This method is must be implemented. void reliableProfileItemNotifications()
acknowledgeProfileItemNotification()
.mandatory
- This method is must be implemented. void unreliableProfileItemNotifications()
mandatory
- This method is must be implemented. void acknowledgeProfileItemNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProfileItems() throws OperationFailedException, PermissionDeniedException
ProfileItemReceiver.newProfileItems()
is invoked when a new
ProfileItem is created.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProfileItems() throws OperationFailedException, PermissionDeniedException
ProfileItemReceiver.changedProfileItems()
is invoked when a
profile item is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProfileItem(Id profileItemId) throws OperationFailedException, PermissionDeniedException
ProfileItemReceiver.changedProfileItems()
is invoked when the
specified profile item is changed.profileItemId
- the Id
of the ProfileItem
to monitorNullArgumentException
- profileItemId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProfileItems() throws OperationFailedException, PermissionDeniedException
ProfileItemReceiver.deletedProfileItems()
is invoked when a
profile is removed from this profile.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProfileItem(Id profileItemId) throws OperationFailedException, PermissionDeniedException
ProfileItemReceiver.changedProfileItems()
is invoked when the
specified profile item is removed from this profile.profileItemId
- the Id
of the ProfileItem
to monitorNullArgumentException
- profileItemId is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.