OSID Logo
OSID Specifications
contact rules package
Version 3.1.0
Interfaceosid.contact.rules.ContactEnablerNotificationSession
Implementsosid.OsidSession
Used Byosid.contact.rules.ContactRulesManager
osid.contact.rules.ContactRulesProxyManager
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.Id the AddressBook Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetAddressBook
Description

Gets the AddressBook associated with this session.

Returnosid.contact.AddressBook the address book
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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
Compliancemandatory This 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.

Compliancemandatory This 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.

Compliancemandatory This method is must be implemented.
MethodreliableContactEnablerNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableContactEnablerNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeContactEnablerNotification
Description

Acknowledge a contact enabler 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.
MethodregisterForNewContactEnablers
Description

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

ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcontactEnablerId the Id of the ContactEnabler to monitor
ErrorsNULL_ARGUMENT contactEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This 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.IdcontactEnablerId the Id of the ContactEnabler to monitor
ErrorsNULL_ARGUMENT contactEnablerId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.