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

This session manages queries and sequencing to create "smart" dynamic polls. A BallotConstrainerEnablerQuery can be retrieved from this session and mapped to this Polls to create a virtual collection of ballot constrainer enablers. The ballot constrainer enablers may be sequenced using the BallotConstrainerEnablerSearchOrder from this session.

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

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.
MethodgetBallotConstrainerEnablerQuery
Description

Gets a ballot constrainer enabler query.

Returnosid.voting.rules.BallotConstrainerEnablerQuery the ballot constrainer enabler query
Compliancemandatory This method must be implemented.
MethodgetBallotConstrainerEnablerSearchOrder
Description

Gets a ballot constrainer enabler search order.

Returnosid.voting.rules.BallotConstrainerEnablerSearchOrder the ballot constrainer enabler search order
Compliancemandatory This method must be implemented.
MethodapplyBallotConstrainerEnablerQuery
Description

Applies a ballot constrainer enabler query to this polls.

Parametersosid.voting.rules.BallotConstrainerEnablerQueryballotConstrainerEnablerQuery the ballot constrainer enabler query
ErrorsNULL_ARGUMENT ballotConstrainerEnablerQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED ballotConstrainerEnablerQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectBallotConstrainerEnablerQuery
Description

Gets a ballot constrainer enabler query inspector for this polls.

Returnosid.voting.rules.BallotConstrainerEnablerQueryInspector the ballot constrainer enabler query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyBallotConstrainerEnablerSequencing
Description

Applies a ballot constrainer enabler search order to this polls.

Parametersosid.voting.rules.BallotConstrainerEnablerSearchOrderballotConstrainerEnablerSearchOrder the ballot constrainer enabler search order
ErrorsNULL_ARGUMENT ballotConstrainerEnablerSearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED ballotConstrainerEnablerSearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetBallotConstrainerEnablerQueryFromInspector
Description

Gets a ballot constrainer enabler query from an inspector.

Parametersosid.voting.rules.BallotConstrainerEnablerQueryInspectorballotConstrainerEnablerQueryInspector a ballot constrainer enabler query inspector
Returnosid.voting.rules.BallotConstrainerEnablerQuery the ballot constrainer enabler query
ErrorsNULL_ARGUMENT ballotConstrainerEnablerQueryInspector is null
UNSUPPORTED ballotConstrainerEnablerQueryInspector is not of this service
Compliancemandatory This method must be implemented.