OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.BallotForm
Implementsosid.OsidGovernatorForm
osid.OsidTemporalForm
Implemented Byosid.voting.batch.BallotBatchForm
Used Byosid.voting.BallotAdminSession
Description

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

MethodgetCommissionersMetadata
Description

Gets the metadata for the commissioners.

Returnosid.Metadatametadata for the commissioners
CompliancemandatoryThis method must be implemented.
MethodsetCommissioners
Description

Sets the commissioners.

Parametersosid.id.IdListcommissionerIdsthe new commissioners
ErrorsINVALID_ARGUMENTcommissionerIds is invalid
NO_ACCESSMetadata.isReadOnly() is true
NULL_ARGUMENTcommissionerIds is null
CompliancemandatoryThis method must be implemented.
MethodclearCommissioners
Description

Removes the commissioners.

ErrorsNO_ACCESSMetadata.isRequired() is true or Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodgetRevoteMetadata
Description

Gets the metadata for the revote flag.

Returnosid.Metadatametadata for the revote flag
CompliancemandatoryThis method must be implemented.
MethodsetRevote
Description

Sets the revote flag.

Parametersbooleanrevotethe revote flag
ErrorsINVALID_ARGUMENTrevote is invalid
NO_ACCESSMetadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearRevote
Description

Clears the revote flag.

CompliancemandatoryThis method must be implemented.
MethodgetBallotFormRecord
Description

Gets the BallotFormRecord corresponding to the given Ballot record Type .

Parametersosid.type.TypecandidateRecordTypethe ballot record type
Returnosid.voting.records.BallotFormRecordthe ballot form record
ErrorsNULL_ARGUMENTballotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(ballotRecordType) is false
CompliancemandatoryThis method must be implemented.