OSID Logo
OSID Specifications
voting batch package
Version 3.1.0
Interfaceosid.voting.batch.VoteBatchForm
Implementsosid.voting.VoteForm
Used Byosid.voting.batch.VoteBatchFormList
Description

This is the form for creating and updating votes in bulk. Like all OsidForms, various data elements may be set here for use in the create and update methods in the VoteBatchAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

Like all OsidForms, VoteBatchForm is stateful and must not be accessed by multiple processing threads.

MethodgetCandidateId
Description

Gets the Id of the candidate if this is a create transaction.

Returnosid.id.Id the candidate Id
ErrorsILLEGAL_STATE isForUpdate() is true
Compliancemandatory This method must be implemented.
MethodgetVoterId
Description

Gets the Id of the voter if this is a create transaction.

Returnosid.id.Id the voter Id
ErrorsILLEGAL_STATE isForUpdate() is true
Compliancemandatory This method must be implemented.
MethodgetVoteId
Description

Gets the Id of the vote to be updated if this is an update transaction.

Returnosid.id.Id the vote Id
ErrorsILLEGAL_STATE isForUpdate() is false
Compliancemandatory This method must be implemented.