OSID Logo
OSID Specifications
voting package
Version 3.1.0
Interfaceosid.voting.VoterAllocationForm
Implementsosid.OsidObjectForm
Used Byosid.voting.VoterAllocationAdminSession
Description

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

MethodgetTotalVotesMetadata
Description

Gets the metadata for the total votes.

Returnosid.Metadata metadata for the total votes
Compliancemandatory This method must be implemented.
MethodsetTotalVotes
Description

Sets the total votes.

Parameterscardinalvotes the total votes
ErrorsINVALID_ARGUMENT votes is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearTotalVotes
Description

Clears the total votes.

Compliancemandatory This method must be implemented.
MethodgetMaxVotesPerCandidateMetadata
Description

Gets the metadata for the max votes per candidate.

Returnosid.Metadata metadata for the max votes per candidate
Compliancemandatory This method must be implemented.
MethodsetMaxVotesPerCandidate
Description

Sets the max votes per candidate.

Parameterscardinalvotes the max votes
ErrorsINVALID_ARGUMENT votes is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMaxVotesPerCandidate
Description

Clears the max votes per candidate.

Compliancemandatory This method must be implemented.
MethodgetMaxCandidatesMetadata
Description

Gets the metadata for the max candidates.

Returnosid.Metadata metadata for the max candidates
Compliancemandatory This method must be implemented.
MethodsetMaxCandidates
Description

Sets the max candidates.

Parameterscardinalcandidates the max candidates
ErrorsINVALID_ARGUMENT candidates is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearMaxCandidates
Description

Clears the max candidates.

Compliancemandatory This method must be implemented.
MethodgetCandidateFormRecord
Description

Gets the CandidateFormRecord corresponding to the given Candidate record Type.

Parametersosid.type.TypecandidateRecordType the candidate record type
Returnosid.voting.records.CandidateFormRecord the candidate form record
ErrorsNULL_ARGUMENT candidateRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(candidateRecordType) is false
Compliancemandatory This method must be implemented.