OSID Logo
OSID Specifications
contact rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.contact.rules.ContactEnablerNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on adds/changes to ContactEnabler objects in this AddressBook. This also includes existing ContactEnablers that may appear or disappear due to changes in the AddressBook hierarchy, 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 ContactEnablerLookupSession.

MethodgetAddressBookId
Description

Gets the AddressBook Id associated with this session.

Returnosid.id.Idthe AddressBook Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAddressBook
Description

Gets the AddressBook associated with this session.

Returnosid.contact.AddressBookthe address book
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForContactEnablerNotifications
Description

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

Federates the view for methods in this session. A federated view will include enablers in address books which are children of this address book in the address book hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedAddressBookView
Description

Isolates the view for methods in this session. An isolated view restricts notifications to this address book only.

CompliancemandatoryThis method is must be implemented.
MethodreliableContactEnablerNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliableContactEnablerNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgeContactEnablerNotification
Description

Acknowledge a contact enabler notification.

Parametersosid.id.IdnotificationIdthe Id of the notification
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewContactEnablers
Description

Register for notifications of new contact enablers. ContactEnablerReceiver.newContactEnablers() is invoked when a new ContactEnabler appears in this address book.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedContactEnablers
Description

Registers for notification of updated contact enablers. ContactEnablerReceiver.changedContactEnablers() is invoked when a contact enabler in this address book is changed.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForChangedContactEnabler
Description

Registers for notification of an updated contact enabler. ProvisionableReceiver.changedContactEnablers() is invoked when the specified contact enabler in this address book is changed.

Parametersosid.id.IdcontactEnablerIdthe Id of the ContactEnabler to monitor
ErrorsNULL_ARGUMENT contactEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedContactEnablers
Description

Registers for notification of deleted contact enablers. ContactEnablerReceiver.deletedContactEnablers() is invoked when a contact enabler is deleted or removed from this address book.

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedContactEnabler
Description

Registers for notification of a deleted contact enabler. ContactEnablerReceiver.deletedContactEnablers() is invoked when the specified contact enabler is deleted or removed from this address book.

Parametersosid.id.IdcontactEnablerIdthe Id of the ContactEnabler to monitor
ErrorsNULL_ARGUMENT contactEnablerId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.