OSID Logo
OSID Specifications
voting package
Version 3.0.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.

Returnbooleanfalse if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodreliablePollsNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodunreliablePollsNotifications
Description

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

CompliancemandatoryThis method is must be implemented.
MethodacknowledgePollsNotification
Description

Acknowledge a polls notification.

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

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

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

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpollsIdthe Id of the Polls to monitor
ErrorsNULL_ARGUMENTpollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPolls
Description

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

ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpollsIdthe Id of the Polls to monitor
ErrorsNULL_ARGUMENTpollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpollsIdthe Id of the Polls node to monitor
ErrorsNULL_ARGUMENTpollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.IdpollsIdthe Id of the Polls node to monitor
ErrorsNULL_ARGUMENTpollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.