OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.VoterAllocationForm
Implementsosid.OsidObjectForm
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.Metadatametadata for the total votes
CompliancemandatoryThis method must be implemented.
MethodsetTotalVotes
Description

Sets the total votes.

Parameterscardinalvotesthe total votes
ErrorsINVALID_ARGUMENT votes is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearTotalVotes
Description

Clears the total votes.

CompliancemandatoryThis method must be implemented.
MethodgetMaxVotesPerCandidateMetadata
Description

Gets the metadata for the max votes per candidate.

Returnosid.Metadatametadata for the max votes per candidate
CompliancemandatoryThis method must be implemented.
MethodsetMaxVotesPerCandidate
Description

Sets the max votes per candidate.

Parameterscardinalvotesthe max votes
ErrorsINVALID_ARGUMENT votes is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearMaxVotesPerCandidate
Description

Clears the max votes per candidate.

CompliancemandatoryThis method must be implemented.
MethodgetMaxCandidatesMetadata
Description

Gets the metadata for the max candidates.

Returnosid.Metadatametadata for the max candidates
CompliancemandatoryThis method must be implemented.
MethodsetMaxCandidates
Description

Sets the max candidates.

Parameterscardinalcandidatesthe max candidates
ErrorsINVALID_ARGUMENT candidates is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearMaxCandidates
Description

Clears the max candidates.

CompliancemandatoryThis method must be implemented.
MethodgetCandidateFormRecord
Description

Gets the CandidateFormRecord corresponding to the given Candidate record Type.

Parametersosid.type.TypecandidateRecordTypethe candidate record type
Returnosid.voting.records.CandidateFormRecordthe candidate form record
ErrorsNULL_ARGUMENT candidateRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(candidateRecordType) is false
CompliancemandatoryThis method must be implemented.