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

This session defines methods to receive asynchronous notifications on adds/changes to votes. 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 views defined in this session correspond to the views in the VoteLookupSession.

MethodgetPollsId
Description

Gets the Polls Id associated with this session.

Returnosid.id.Id the Polls Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPolls
Description

Gets the Polls associated with this session.

Returnosid.voting.Polls the polls
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanRegisterForVoteNotifications
Description

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

Federates the view for methods in this session. A federated view will include notifications for votes in polls which are children of this polls in the polls hierarchy.

Compliancemandatory This method is must be implemented.
MethoduseIsolatedPollsView
Description

Isolates the view for methods in this session. An isolated view restricts notifications for votes in this polls only.

Compliancemandatory This method is must be implemented.
MethodreliableVoteNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodunreliableVoteNotifications
Description

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

Compliancemandatory This method is must be implemented.
MethodacknowledgeVoteNotification
Description

Acknowledge a vote 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.
MethodregisterForNewVotes
Description

Register for notifications of new votes. VoteReceiver.newVotes() is invoked when a new vote is created.

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

Register for notifications of new votes for the given ballot. VoteReceiver.newVotes() is invoked when a new vote is created.

Parametersosid.id.IdballotId the Id of the Ballot to monitor
ErrorsNULL_ARGUMENT ballotId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewVotesForRace
Description

Register for notifications of new votes for the given race. VoteReceiver.newVotes() is invoked when a new vote is created.

Parametersosid.id.IdraceId the Id of the Race to monitor
ErrorsNULL_ARGUMENT raceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewVotesForCandidate
Description

Register for notifications of new votes for the given candidate. VoteReceiver.newVotes() is invoked when a new vote is created.

Parametersosid.id.IdcandidateId the Id of the Candidate to monitor
ErrorsNULL_ARGUMENT candidateId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForNewVotesForVoter
Description

Register for notifications of new votes for the given voter. VoteReceiver.newVotes() is invoked when a new vote is created.

Parametersosid.id.IdresourceId the Id of the voter to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedVotes
Description

Registers for notification of updated votes. VoteReceiver.ChangedVotes() is invoked when a vote is changed.

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

Register for notifications of updated votes for the given ballot. VoteReceiver.changedVotes() is invoked when a vote is changed.

Parametersosid.id.IdballotId the Id of the Ballot to monitor
ErrorsNULL_ARGUMENT ballotId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedVotesForRace
Description

Register for notifications of updated votes for the given race. VoteReceiver.changedVotes() is invoked when a vote is changed.

Parametersosid.id.IdraceId the Id of the Race to monitor
ErrorsNULL_ARGUMENT raceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedVotesForCandidate
Description

Register for notifications of updated votes for the given candidate. VoteReceiver.changedVotes() is invoked when a vote is changed.

Parametersosid.id.IdcandidateId the Id of the Candidate to monitor
ErrorsNULL_ARGUMENT candidateId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedVotesForVoter
Description

Register for notifications of updated votes for the given voter. VoteReceiver.changedVotes() is invoked when a vote is changed.

Parametersosid.id.IdresourceId the Id of the voter to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForChangedVote
Description

Register for notifications of updated votes for the given vote. VoteReceiver.changedVotes() is invoked when a vote is changed.

Parametersosid.id.IdvoteId the Id of the Vote to monitor
ErrorsNULL_ARGUMENT voteId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedVotes
Description

Registers for notification of deleted votes. VoteReceiver.deletedVotes() is invoked when a vote is deleted.

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

Register for notifications of deleted votes for the given ballot. VoteReceiver.deletedVotes() is invoked when a vote is deleted.

Parametersosid.id.IdballotId the Id of the Ballot to monitor
ErrorsNULL_ARGUMENT ballotId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedVotesForRace
Description

Register for notifications of deleted votes for the given race. VoteReceiver.deletedVotes() is invoked when a vote is deleted.

Parametersosid.id.IdraceId the Id of the Race to monitor
ErrorsNULL_ARGUMENT raceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedVotesForCandidate
Description

Register for notifications of deleted votes for the given candidate. VoteReceiver.deletedVotes() is invoked when a vote is deleted.

Parametersosid.id.IdcandidateId the Id of the Candidate to monitor
ErrorsNULL_ARGUMENT candidateId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedVotesForVoter
Description

Register for notifications of deleted votes for the given voter. VoteReceiver.deletedVotes() is invoked when a vote is deleted.

Parametersosid.id.IdresourceId the Id of the voter to monitor
ErrorsNULL_ARGUMENT resourceId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodregisterForDeletedVote
Description

Registers for notification of a deleted vote. VoteReceiver.changedVotes() is invoked when the specified vote is deleted.

Parametersosid.id.IdvoteId the Id of the Vote to monitor
ErrorsNULL_ARGUMENT voteId is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.