OSID Logo
OSID Specifications
voting package
Version 3.0.0
Release Candidate Preview
Interfaceosid.voting.CandidateSearchOrder
Implementsosid.OsidRelationshipSearchOrder
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_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsRaceSearchOrder
Description

Tests if a RaceSearchOrder is available.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsRaceSearchOrder() 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_ARGUMENT style is null
CompliancemandatoryThis method must be implemented.
MethodsupportsResourceSearchOrder
Description

Tests if a ResourceSearchOrder is available.

Returnboolean true 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
ErrorsUNIMPLEMENTED supportsResourceSearchOrder() 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_ARGUMENT candidateRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(candidateRecordType) is false
CompliancemandatoryThis method must be implemented.