OSID Logo
OSID Specifications
voting package
Version 3.1.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.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsRaceSearchOrder
Description

Tests if a RaceSearchOrder is available.

Returnboolean true if a race search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetRaceSearchOrder
Description

Gets the search order for a race.

Returnosid.voting.RaceSearchOrder the race search order
ErrorsUNIMPLEMENTED supportsRaceSearchOrder() is false
Complianceoptional This method must be implemented if supportsRaceSearchOrder() is true.
MethodorderByResource
Description

Specified a preference for ordering results by the assoicated resource.

Parametersosid.SearchOrderStylestyle search order style
ErrorsNULL_ARGUMENT style is null
Compliancemandatory This method must be implemented.
MethodsupportsResourceSearchOrder
Description

Tests if a ResourceSearchOrder is available.

Returnboolean true if a resource search order is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetResourceSearchOrder
Description

Gets the search order for the associated resource.

Returnosid.resource.ResourceSearchOrder the resource search order
ErrorsUNIMPLEMENTED supportsResourceSearchOrder() is false
Complianceoptional This 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.TypecandidateRecordType a candidate record type
Returnosid.voting.records.CandidateSearchOrderRecord the candidate search order record
ErrorsNULL_ARGUMENT candidateRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(candidateRecordType) is false
Compliancemandatory This method must be implemented.