OSID Logo
OSID Specifications
profile package
Version 3.1.0
Interfaceosid.profile.ProfileEntryNotificationSession
Implementsosid.OsidSession
Used Byosid.profile.ProfileManager
osid.profile.ProfileProxyManager
Description

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.

MethodgetProfileId
Description

Gets the Profile Id associated with this session.

Returnosid.id.Id the Profile Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetProfile
Description

Gets the Profile associated with this session.

Returnosid.profile.Profile the Profile associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForProfileEntryNotifications
Description

Tests if this user can register for 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.

Returnboolean false if notification methods are not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethoduseFederatedProfileView
Description

Federates the view for methods in this session. A federated view will include profile entries in profiles which are children of this profile in the profile hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedProfileView
Description

Isolates the view for methods in this session. An isolated view restricts notifications for profile entries in this profile only.

Compliancemandatory This method is must be implemented.
MethoduseImplicitProfileEntryView
Description

Sets the view for methods in this session to implicit profile entries. An implicit view will include profile entries derived from other authorizations as a result of the ProfileItem or Resource hierarchies. This method is the opposite of explicitProfileEntryView().

Compliancemandatory This method is must be implemented.
MethoduseExplicitProfileEntryView
Description

Sets the view for methods in this session to explicit profile entries. An explicit view includes only those entries that were explicitly defined and not implied. This method is the opposite of implicitProfileEntryView().

Compliancemandatory This method is must be implemented.
MethodreliableProfileEntryNotifications
Description

Reliable notifications are desired. In reliable mode, notifications are to be acknowledged using acknowledgeProfileEntryNotification().

Compliancemandatory This method is must be implemented.
MethodunreliableProfileEntryNotifications
Description

Unreliable notifications are desired. In unreliable mode, notifications do not need to be acknowledged.

Compliancemandatory This method is must be implemented.
MethodacknowledgeProfileEntryNotification
Description

Acknowledge a profile entry notification.

Parametersosid.id.IdnotificationId the Id of the notification
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewProfileEntries
Description

Register for notifications of new profile entries. ProfileEntryReceiver.newProfileEntries() is invoked when a new ProfileEntry appears in this profile.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewProfileEntriesForResource
Description

Registers for notification of new profile entries for the given resource including any profile entries related to the resource through an agent. ProfileEntryReceiver.newProfileEntries() is invoked when a profile entry appears in this profile.

Parametersosid.id.IdresourceId the Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewProfileEntriesForProfileItem
Description

Register for notifications of new profile entries for the given profile item. ProfileEntryReceiver.newProfileEntries() is invoked when a new ProfileEntry appears in this profile.

Parametersosid.id.IdprofileItemId the Id of the ProfileItem to monitor
ErrorsNULL_ARGUMENT profileItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedProfileEntries
Description

Registers for notification of updated profile entries. ProfileEntryReceiver.changedProfileEntries() is invoked when an entry is changed.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedProfileEntriesForResource
Description

Registers for notification of updated profile entries for the given resource including any profile entries related to the resource through an agent. ProfileEntryReceiver.changedProfileEntries() is invoked when a profile entry in this profile is changed.

Parametersosid.id.IdresourceId the Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedProfileEntriesForProfileItem
Description

Register for notifications of updated profile entries for the given profile item. ProfileEntryReceiver.changedProfileEntry() is invoked when a new ProfileEntry in this profile is changed.

Parametersosid.id.IdprofileItemId the Id of the ProfileItem to monitor
ErrorsNULL_ARGUMENT profileItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedProfileEntry
Description

Registers for notification of an updated profile entry. ProfileEntryReceiver.changedProfileEntries() is invoked when the specified entry in this profile changed.

Parametersosid.id.IdprofileEntryId the Id of the ProfileEntry to monitor
ErrorsNULL_ARGUMENT profileEntryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedProfileEntries
Description

Registers for notification of deleted profile entries. ProfileEntryReceiver.deletedProfileEntries() is invoked when a profile entry is removed from this profile.

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedProfileEntriesForResource
Description

Registers for notification of deleted profile entries for the given resource including any profile entries related to the resource through an agent. ProfileEntryReceiver.changedProfileEntries() is invoked when a profile entry is removed from this profile.

Parametersosid.id.IdresourceId the Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedProfileEntriesForProfileItem
Description

Register for notifications of deleted profile entries for the given profile item. ProfileEntryReceiver.deletedProfileEntries() is invoked when a ProfileEntry is removed from this profile.

Parametersosid.id.IdprofileItemId the Id of the ProfileItem to monitor
ErrorsNULL_ARGUMENT profileItemId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedProfileEntry
Description

Registers for notification of a deleted profile entry. ProfileEntryReceiver.deletedProfileEntries() is invoked when the specified entry is removed from this profile.

Parametersosid.id.IdprofileEntryId the Id of the ProfileEntry to monitor
ErrorsNULL_ARGUMENT profileEntryId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.