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

This session manages queries and sequencing to create "smart" dynamic polls. a RaceConstrainerQuery can be retrieved from this session and mapped to this Polls to create a virtual collection of race constrainers. The race constrainer may be sequenced using the RaceConstrainerSearchOrder from this session.

This Polls has a default query that matches any race constrainer and a default search order that specifies no sequencing. The queries may be examined using a RaceConstrainerQueryInspector. The query may be modified by converting the inspector back to a RaceConstrainerQuery.

MethodgetPollsId
Description

Gets the Polls Id associated with this session.

Returnosid.id.Id the Polls Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetPolls
Description

Gets the Polls associated with this session.

Returnosid.voting.Polls the polls
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartPolls
Description

Tests if this user can manage smart polls. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart polls management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetRaceConstrainerQuery
Description

Gets a race constrainer query.

Returnosid.voting.rules.RaceConstrainerQuery the race constrainer query
Compliancemandatory This method must be implemented.
MethodgetRaceConstrainerSearchOrder
Description

Gets a race constrainer search order.

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

Applies a race constrainer query to this polls.

Parametersosid.voting.rules.RaceConstrainerQueryraceConstrainerQuery the race constrainer query
ErrorsNULL_ARGUMENT raceConstrainerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED raceConstrainerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectRaceConstrainerQuery
Description

Gets a race constrainer query inspector for this polls.

Returnosid.voting.rules.RaceConstrainerQueryInspector the race constrainer query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyRaceConstrainerSequencing
Description

Applies a race constrainer search order to this polls.

Parametersosid.voting.rules.RaceConstrainerSearchOrderraceConstrainerSearchOrder the race constrainer search order
ErrorsNULL_ARGUMENT raceConstrainerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED raceConstrainerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetRaceConstrainerQueryFromInspector
Description

Gets a race constrainer query from an inspector.

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.