public interface ProfileEntryNotificationSession extends OsidSession
This session defines methods to receive asynchronous notifications on
adds/changes to ProfileEntries.
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 views defined in this session correspond to the views in the
ProfileEntryLookupSession.
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeProfileEntryNotification(Id notificationId)
Acknowledge a profile entry notification.
|
boolean |
canRegisterForProfileEntryNotifications()
Tests if this user can register for
ProfileEntry
notifications. |
Profile |
getProfile()
Gets the
Profile associated with this session. |
Id |
getProfileId()
Gets the
Profile Id associated with this
session. |
void |
registerForChangedProfileEntries()
Registers for notification of updated profile entries.
|
void |
registerForChangedProfileEntriesForProfileItem(Id profileItemId)
Register for notifications of updated profile entries for the given
profile item.
|
void |
registerForChangedProfileEntriesForResource(Id resourceId)
Registers for notification of updated profile entries for the given
resource including any profile entries related to the resource through
an agent.
|
void |
registerForChangedProfileEntry(Id profileEntryId)
Registers for notification of an updated profile entry.
|
void |
registerForDeletedProfileEntries()
Registers for notification of deleted profile entries.
|
void |
registerForDeletedProfileEntriesForProfileItem(Id profileItemId)
Register for notifications of deleted profile entries for the given
profile item.
|
void |
registerForDeletedProfileEntriesForResource(Id resourceId)
Registers for notification of deleted profile entries for the given
resource including any profile entries related to the resource through
an agent.
|
void |
registerForDeletedProfileEntry(Id profileEntryId)
Registers for notification of a deleted profile entry.
|
void |
registerForNewProfileEntries()
Register for notifications of new profile entries.
|
void |
registerForNewProfileEntriesForProfileItem(Id profileItemId)
Register for notifications of new profile entries for the given
profile item.
|
void |
registerForNewProfileEntriesForResource(Id resourceId)
Registers for notification of new profile entries for the given
resource including any profile entries related to the resource through
an agent.
|
void |
reliableProfileEntryNotifications()
Reliable notifications are desired.
|
void |
unreliableProfileEntryNotifications()
Unreliable notifications are desired.
|
void |
useExplicitProfileEntryView()
Sets the view for methods in this session to explicit profile entries.
|
void |
useFederatedProfileView()
Federates the view for methods in this session.
|
void |
useImplicitProfileEntryView()
Sets the view for methods in this session to implicit profile entries.
|
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 canRegisterForProfileEntryNotifications()
ProfileEntry
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 useImplicitProfileEntryView()
ProfileItem
or
Resource
hierarchies. This method is the opposite of
explicitProfileEntryView().
mandatory
- This method is must be implemented. void useExplicitProfileEntryView()
implicitProfileEntryView().
mandatory
- This method is must be implemented. void reliableProfileEntryNotifications()
acknowledgeProfileEntryNotification()
.mandatory
- This method is must be implemented. void unreliableProfileEntryNotifications()
mandatory
- This method is must be implemented. void acknowledgeProfileEntryNotification(Id notificationId) throws OperationFailedException, PermissionDeniedException
notificationId
- the Id
of the notificationOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProfileEntries() throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.newProfileEntries()
is invoked when a new
ProfileEntry
appears in this profile.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProfileEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.newProfileEntries()
is
invoked when a profile entry appears in this profile.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForNewProfileEntriesForProfileItem(Id profileItemId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.newProfileEntries()
is invoked when a new ProfileEntry
appears in 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. void registerForChangedProfileEntries() throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.changedProfileEntries()
is invoked when
an entry is changed.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProfileEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.changedProfileEntries()
is invoked when a profile entry in this profile is changed.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForChangedProfileEntriesForProfileItem(Id profileItemId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.changedProfileEntry()
is invoked when a new ProfileEntry
in this
profile 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 registerForChangedProfileEntry(Id profileEntryId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.changedProfileEntries()
is invoked when
the specified entry in this profile changed.profileEntryId
- the Id
of the
ProfileEntry
to monitorNullArgumentException
- profileEntryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProfileEntries() throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.deletedProfileEntries()
is invoked when a
profile entry is removed from this profile.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProfileEntriesForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.changedProfileEntries()
is invoked when a profile entry is removed from this profile.resourceId
- the Id
of the Resource
to monitorNullArgumentException
- resourceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void registerForDeletedProfileEntriesForProfileItem(Id profileItemId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.deletedProfileEntries()
is invoked when a ProfileEntry
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. void registerForDeletedProfileEntry(Id profileEntryId) throws OperationFailedException, PermissionDeniedException
ProfileEntryReceiver.deletedProfileEntries()
is invoked when
the specified entry is removed from this profile.profileEntryId
- the Id
of the
ProfileEntry
to monitorNullArgumentException
- profileEntryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.