OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.VoteForm
Implementsosid.OsidRelationshipForm
Description

This is the form for creating and updating Votes.

MethodgetVotesMetadata
Description

Gets the metadata for the number of votes.

Returnosid.Metadatametadata for the votes
CompliancemandatoryThis method must be implemented.
MethodsetVotes
Description

Sets the votes.

Parametersintegervotesthe votes
ErrorsINVALID_ARGUMENT votes is invalid
NO_ACCESS Metadata.isReadOnly() is true
CompliancemandatoryThis method must be implemented.
MethodclearVotes
Description

Clears the votes.

CompliancemandatoryThis method must be implemented.
MethodgetVoteFormRecord
Description

Gets the VoteFormRecord record corresponding to the given vote Type.

Parametersosid.type.TypevoteRecordTypethe vote record type
Returnosid.voting.records.VoteFormRecordthe vote form record
ErrorsNULL_ARGUMENT voteRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(voteRecordType) is false
CompliancemandatoryThis method must be implemented.