OSID Logo
OSID Specifications
profile package
Version 3.0.0
Release Candidate Preview
Interfaceosid.profile.ProfileEntryNotificationSession
Implementsosid.OsidSession
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.Idthe Profile Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetProfile
Description

Gets the Profile associated with this session.

Returnosid.profile.Profilethe Profile associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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
CompliancemandatoryThis 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.

CompliancemandatoryThis 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.

CompliancemandatoryThis 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().

CompliancemandatoryThis 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().

CompliancemandatoryThis method is must be implemented.
MethodreliableProfileEntryNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableProfileEntryNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeProfileEntryNotification
Description

Acknowledge a profile entry notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdresourceIdthe Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdprofileItemIdthe Id of the ProfileItem to monitor
ErrorsNULL_ARGUMENT profileItemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedProfileEntries
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdresourceIdthe Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdprofileItemIdthe Id of the ProfileItem to monitor
ErrorsNULL_ARGUMENT profileItemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdprofileEntryIdthe Id of the ProfileEntry to monitor
ErrorsNULL_ARGUMENT profileEntryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdresourceIdthe Id of the Resource to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdprofileItemIdthe Id of the ProfileItem to monitor
ErrorsNULL_ARGUMENT profileItemId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdprofileEntryIdthe Id of the ProfileEntry to monitor
ErrorsNULL_ARGUMENT profileEntryId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.