OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.PollsNotificationSession
Implementsosid.OsidSession
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
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.
MethodregisterForNewPollsAncestors
Description

Registers for notification if an ancestor is added to the specified polls in the polls hierarchy. PollsReceiver.newPollsAncestor() is invoked when the specified polls experiences an addition in ancestry.

Parametersosid.id.IdpollsIdthe Id of the polls to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForNewPollsDescendants
Description

Registers for notification if a descendant is added to the specified polls in the polls hierarchy. PollsReceiver.newPollsDescendant() is invoked when the specified polls experiences an addition in descendants.

Parametersosid.id.IdpollsIdthe Id of the polls to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_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_ARGUMENT pollsId 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_ARGUMENT pollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPollsAncestors
Description

Registers for notification if an ancestor is removed from the specified polls in the polls hierarchy. PollsReceiver.deletedPollsAncestor() is invoked when the specified polls experiences a removal of an ancestor.

Parametersosid.id.IdpollsIdthe Id of the polls to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForDeletedPollsDescendants
Description

Registers for notification if a descendant is removed from fthe specified polls in the polls hierarchy. PollsReceiver.deletedPollsDescendnant() is invoked when the specified polls experiences a removal of one of its descdendents.

Parametersosid.id.IdpollsIdthe Id of the polls to monitor
ErrorsNULL_ARGUMENT pollsId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.