OSID Logo
OSID Specifications
voting package
Version 3.1.0
Interfaceosid.voting.PollsNotificationSession
Implementsosid.OsidSession
Used Byosid.voting.VotingManager
osid.voting.VotingProxyManager
Description

This session defines methods to receive notifications on adds/changes to Polls objects. 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.

MethodcanRegisterForPollsNotifications
Description

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

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

Compliancemandatory This method is must be implemented.
MethodunreliablePollsNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgePollsNotification
Description

Acknowledge a polls 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.
MethodregisterForNewPolls
Description

Register for notifications of new polls. PollsReceiver.newPolls() is invoked when a new Polls is created.

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

Registers for notification of updated polls. PollsReceiver.changedPolls() is invoked when a polls is changed.

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

Registers for notification of an updated polls. PollsReceiver.changedPolls() is invoked when the specified polls is changed.

Parametersosid.id.IdpollsId the Id of the Polls to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedPolls
Description

Registers for notification of deleted polls. PollsReceiver.deletedPolls() is invoked when a polls is deleted.

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

Registers for notification of a deleted polls. PollsReceiver.deletedPolls() is invoked when the specified polls is deleted.

Parametersosid.id.IdpollsId the Id of the Polls to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedPollsHierarchy
Description

Registers for notification of an updated polls hierarchy structure. PollsReceiver.changedChildOfPolls() is invoked when a node experiences a change in its children.

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

Registers for notification of an updated polls hierarchy structure. PollsReceiver.changedChildOfPolls() is invoked when a node experiences a change in its children.

Parametersosid.id.IdpollsId the Id of the Polls node to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedPollsHierarchyForDescendants
Description

Registers for notification of an updated polls hierarchy structure. PollsReceiver.changedChildOfPolls() is invoked when a node experiences a change in its children.

Parametersosid.id.IdpollsId the Id of the Polls node to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.