OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.RaceSearchOrder
Implementsosid.OsidGovernatorSearchOrder
osid.OsidSubjugateableSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByBallot
Description

Orders the results by the ballot.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsBallotSearchOrder
Description

Tests if a ballot search order is available.

Returnboolean true if a ballot search order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetBallotSearchOrder
Description

Gets the ballot search order.

Returnosid.voting.BallotSearchOrderthe ballot search order
ErrorsILLEGAL_STATE supportsBallotSearchOrder() is false
CompliancemandatoryThis method must be implemented.
MethodgetRaceSearchOrderRecord
Description

Gets the polls search order record corresponding to the given race record Type. Multiple retrievals return the same underlying object.

Parametersosid.type.TyperaceRecordTypea race record type
Returnosid.voting.records.RaceSearchOrderRecordthe race search order record
ErrorsNULL_ARGUMENT raceRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(raceRecordType) is false
CompliancemandatoryThis method must be implemented.