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

This session manages queries and sequencing to create "smart" dynamic catalogs. A VoteEnablerQuery can be retrieved from this session and mapped to this Polls to create a virtual collection of VoteEnablers . The vote enablers may be sequenced using the VoteEnablerSearchOrder from this session.

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

MethodgetPollsId
Description

Gets the Polls Id associated with this session.

Returnosid.id.Idthe Polls Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetPolls
Description

Gets the Polls associated with this session.

Returnosid.voting.Pollsthe polls
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis 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.

Returnbooleanfalse if smart polls management is not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethodgetVoteEnablerQuery
Description

Gets a vote enabler query.

Returnosid.voting.rules.VoteEnablerQuerythe vote enabler query
CompliancemandatoryThis method must be implemented.
MethodgetVoteEnablerSearchOrder
Description

Gets a vote enabler search order.

Returnosid.voting.rules.VoteEnablerSearchOrderthe vote enabler search order
CompliancemandatoryThis method must be implemented.
MethodapplyVoteEnablerQuery
Description

Applies a vote enabler query to this polls.

Parametersosid.voting.rules.VoteEnablerQueryvoteEnablerQuerythe vote enabler query
ErrorsNULL_ARGUMENTvoteEnablerQuery is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDvoteEnablerQuery not of this service
CompliancemandatoryThis method must be implemented.
MethodinspectVoteEnablerQuery
Description

Gets a vote enabler query inspector for this polls.

Returnosid.voting.rules.VoteEnablerQueryInspectorthe vote enabler query inspector
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
CompliancemandatoryThis method must be implemented.
MethodapplyVoteEnablerSequencing
Description

Applies a vote enabler search order to this polls.

Parametersosid.voting.rules.VoteEnablerSearchOrdervoteEnablerSearchOrderthe vote enabler search order
ErrorsNULL_ARGUMENTvoteEnablerSearchOrder is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure occurred
UNSUPPORTEDvoteEnablerSearchOrder not of this service
CompliancemandatoryThis method must be implemented.
MethodgetVoteEnablerQueryFromInspector
Description

Gets a vote enabler query from an inspector.

Parametersosid.voting.rules.VoteEnablerQueryInspectorvoteEnablerQueryInspectora vote enabler query inspector
Returnosid.voting.VoteQuerythe vote enabler query
ErrorsNULL_ARGUMENTvoteEnablerQueryInspector is null
UNSUPPORTEDvoteEnablerQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.