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

This is the form for creating and updating Votes.

MethodgetVotesMetadata
Description

Gets the metadata for the number of votes.

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

Sets the votes.

Parametersintegervotes the votes
ErrorsINVALID_ARGUMENT votes is invalid
NO_ACCESS Metadata.isReadOnly() is true
Compliancemandatory This method must be implemented.
MethodclearVotes
Description

Clears the votes.

Compliancemandatory This method must be implemented.
MethodgetVoteFormRecord
Description

Gets the VoteFormRecord record corresponding to the given vote Type.

Parametersosid.type.TypevoteRecordType the vote record type
Returnosid.voting.records.VoteFormRecord the vote form record
ErrorsNULL_ARGUMENT voteRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(voteRecordType) is false
Compliancemandatory This method must be implemented.