OSID Logo
OSID Specifications
voting rules package
Version 3.1.0
Interfaceosid.voting.rules.RaceProcessorSearchSession
Implementsosid.voting.rules.RaceProcessorQuerySession
Used Byosid.voting.rules.VotingRulesManager
osid.voting.rules.VotingRulesProxyManager
Description

This session provides methods for searching among RaceProcessor objects. The search query is constructed using the RaceProcessoryQuery.

getRaceProcessorsByQuery() is the basic search method and returns a list of RaceProcessors. A more advanced search may be performed with getRaceProcessorsBySearch().It accepts a RaceProcessorSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as voting. getRaceProcessorsBySearch() returns a RaceProcessorSearchResults that can be used to access the resulting RaceProcessorList or be used to perform a search within the result set through RaceProcessorSearch.

This session defines views that offer differing behaviors for searching.

  • federated polls view: searches include race processor in polls of which this polls is an ancestor in the polls hierarchy
  • isolated polls view: searches are restricted to race processor in this polls
RaceProcessors may have a query record indicated by their respective record types. Thequery record is accessed via the RaceProcessorQuery.
MethodgetRaceProcessorSearch
Description

Gets a race processor search.

Returnosid.voting.rules.RaceProcessorSearch the race processor search
Compliancemandatory This method must be implemented.
MethodgetRaceProcessorSearchOrder
Description

Gets a race processor search order. The RaceProcessorSearchOrder is supplied to a RaceProcessorSearch to specify the ordering of results.

Returnosid.voting.rules.RaceProcessorSearchOrder the race processor search order
Compliancemandatory This method must be implemented.
MethodgetRaceProcessorsBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.voting.rules.RaceProcessorQueryraceProcessorQuery the race processor query
osid.voting.rules.RaceProcessorSearchraceProcessorSearch the race processor search
Returnosid.voting.rules.RaceProcessorSearchResults the returned search results
ErrorsNULL_ARGUMENT raceProcessorQuery or raceProcessorSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED raceProcessorQuery or raceProcessorSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetRaceProcessorQueryFromInspector
Description

Gets a race processor query from an inspector. The inspector is available from a RaceProcessorSearchResults.

Parametersosid.voting.rules.RaceProcessorQueryInspectorraceProcessorQueryInspector a race processor query inspector
Returnosid.voting.rules.RaceProcessorQuery the race processor query
ErrorsNULL_ARGUMENT raceProcessorQueryInspector is null
UNSUPPORTED raceProcessorQueryInspector is not of this service
Compliancemandatory This method must be implemented.