OSID Logo
OSID Specifications
voting package
Version 3.1.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.Metadata metadata for the commissioners
Compliancemandatory This method must be implemented.
MethodsetCommissioners
Description

Sets the commissioners.

Parametersosid.id.IdListcommissionerIds the new commissioners
ErrorsINVALID_ARGUMENT commissionerIds is invalid
NO_ACCESS Metadata.isReadOnly() is true
NULL_ARGUMENT commissionerIds is null
Compliancemandatory This method must be implemented.
MethodclearCommissioners
Description

Removes the commissioners.

ErrorsNO_ACCESS Metadata.isRequired() is true or Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodgetRevoteMetadata
Description

Gets the metadata for the revote flag.

Returnosid.Metadata metadata for the revote flag
Compliancemandatory This method must be implemented.
MethodsetRevote
Description

Sets the revote flag.

Parametersbooleanrevote the revote flag
ErrorsINVALID_ARGUMENT revote is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearRevote
Description

Clears the revote flag.

Compliancemandatory This method must be implemented.
MethodgetBallotFormRecord
Description

Gets the BallotFormRecord corresponding to the given Ballot record Type.

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