OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.BallotQuery
Implementsosid.OsidGovernatorQuery
osid.OsidTemporalQuery
Description

This is the query for searching ballots. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchRevote
Description

Matches ballots that allow vote modification.

Parametersbooleanmatch true for a positive match, false for a negative match
CompliancemandatoryThis method must be implemented.
MethodclearRevoteTerms
Description

Clears the revote ballot terms.

CompliancemandatoryThis method must be implemented.
MethodmatchRaceId
Description

Sets the race Id for this query.

Parametersosid.id.IdraceIdthe race Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT raceId is null
CompliancemandatoryThis method must be implemented.
MethodclearRaceIdTerms
Description

Clears the race Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsRaceQuery
Description

Tests if a RaceQuery is available.

Returnboolean true if a race query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRaceQuery
Description

Gets the query for a race. Multiple retrievals produce a nested OR term.

Returnosid.voting.RaceQuerythe race query
ErrorsUNIMPLEMENTED supportsRaceQuery() is false
ComplianceoptionalThis method must be implemented if supportsRaceQuery() is true.
MethodmatchAnyRace
Description

Matches ballots with any race.

Parametersbooleanmatch true to match any race, false to match ballots with no races
CompliancemandatoryThis method must be implemented.
MethodclearRaceTerms
Description

Clears the race terms.

CompliancemandatoryThis method must be implemented.
MethodmatchPollsId
Description

Sets the polls Id for this query.

Parametersosid.id.IdpollsIdthe polls Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT pollsId is null
CompliancemandatoryThis method must be implemented.
MethodclearPollsIdTerms
Description

Clears the polls Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsPollsQuery
Description

Tests if a PollsQuery is available.

Returnboolean true if a polls query is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetPollsQuery
Description

Gets the query for a polls. Multiple retrievals produce a nested OR term.

Returnosid.voting.PollsQuerythe polls query
ErrorsUNIMPLEMENTED supportsPollsQuery() is false
ComplianceoptionalThis method must be implemented if supportsPollsQuery() is true.
MethodclearPollsTerms
Description

Clears the polls terms.

CompliancemandatoryThis method must be implemented.
MethodgetBallotQueryRecord
Description

Gets the ballot query record corresponding to the given Ballot record Type. Multiple retrievals produce a nested OR term.

Parametersosid.type.TypeballotRecordTypea ballot record type
Returnosid.voting.records.BallotQueryRecordthe ballot query record
ErrorsNULL_ARGUMENT ballotRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(ballotRecordType) is false
CompliancemandatoryThis method must be implemented.