OSID Logo
OSID Specifications
voting package
Version 3.0.0
Interfaceosid.voting.CandidateSearchOrder
Implementsosid.OsidRelationshipSearchOrder
Used Byosid.voting.CandidateSearchSession
osid.voting.CandidateSmartPollsSession
osid.voting.VoteSearchOrder
Description

An interface for specifying the ordering of search results.

MethodorderByRace
Description

Specified a preference for ordering results by the race.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENTstyle is null
CompliancemandatoryThis method must be implemented.
MethodsupportsRaceSearchOrder
Description

Tests if a RaceSearchOrder is available.

Returnbooleantrue if a race search order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetRaceSearchOrder
Description

Gets the search order for a race.

Returnosid.voting.RaceSearchOrderthe race search order
ErrorsUNIMPLEMENTEDsupportsRaceSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsRaceSearchOrder() is true .
MethodorderByResource
Description

Specified a preference for ordering results by the assoicated resource.

Parametersosid.SearchOrderStylestylesearch order style
ErrorsNULL_ARGUMENTstyle is null
CompliancemandatoryThis method must be implemented.
MethodsupportsResourceSearchOrder
Description

Tests if a ResourceSearchOrder is available.

Returnbooleantrue if a resource search order is available, false otherwise
CompliancemandatoryThis method must be implemented.
MethodgetResourceSearchOrder
Description

Gets the search order for the associated resource.

Returnosid.resource.ResourceSearchOrderthe resource search order
ErrorsUNIMPLEMENTEDsupportsResourceSearchOrder() is false
ComplianceoptionalThis method must be implemented if supportsResourceSearchOrder() is true .
MethodgetCandidateSearchOrderRecord
Description

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

Parametersosid.type.TypecandidateRecordTypea candidate record type
Returnosid.voting.records.CandidateSearchOrderRecordthe candidate search order record
ErrorsNULL_ARGUMENTcandidateRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(candidateRecordType) is false
CompliancemandatoryThis method must be implemented.