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

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

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

This session defines views that offer differing behaviors for searching.

  • federated polls view: searches include race constrainer in polls of which this polls is an ancestor in the polls hierarchy
  • isolated polls view: searches are restricted to race constrainer in this polls
RaceConstrainers may have a query record indicated by their respective record types. The query record is accessed via the RaceConstrainerQuery.
MethodgetRaceConstrainerSearch
Description

Gets a race constrainer search.

Returnosid.voting.rules.RaceConstrainerSearch the race constrainer search
Compliancemandatory This method must be implemented.
MethodgetRaceConstrainerSearchOrder
Description

Gets a race constrainer search order. The RaceConstrainerSearchOrder is supplied to a RaceConstrainerSearch to specify the ordering of results.

Returnosid.voting.rules.RaceConstrainerSearchOrder the race constrainer search order
Compliancemandatory This method must be implemented.
MethodgetRaceConstrainersBySearch
Description

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

Parametersosid.voting.rules.RaceConstrainerQueryraceConstrainerQuery the race constrainer query
osid.voting.rules.RaceConstrainerSearchraceConstrainerSearch the race constrainer search
Returnosid.voting.rules.RaceConstrainerSearchResults the returned search results
ErrorsNULL_ARGUMENT raceConstrainerQuery or raceConstrainerSearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED raceConstrainerQuery or raceConstrainerSearch is not of this service
Compliancemandatory This method must be implemented.
MethodgetRaceConstrainerQueryFromInspector
Description

Gets a race constrainer query from an inspector. The inspector is available from a RaceConstrainerSearchResults.

Parametersosid.voting.rules.RaceConstrainerQueryInspectorraceConstrainerQueryInspector a race constrainer query inspector
Returnosid.voting.rules.RaceConstrainerQuery the race constrainer query
ErrorsNULL_ARGUMENT raceConstrainerQueryInspector is null
UNSUPPORTED raceConstrainerQueryInspector is not of this service
Compliancemandatory This method must be implemented.