public interface BallotConstrainerSmartPollsSession extends OsidSession
This session manages queries and sequencing to create "smart" dynamic
polls. A BallotConstrainerQuery
can be retrieved from this
session and mapped to this Polls
to create a virtual
collection of ballot constrainers. The ballot constrainer may be sequenced
using the BallotConstrainerSearchOrder
from this session.
This Polls
has a default query that matches any ballot
constrainer and a default search order that specifies no sequencing. The
queries may be examined using a BallotConstrainerQueryInspector.
The query may be modified by converting the inspector back to a
BallotConstrainerQuery.
Modifier and Type | Method and Description |
---|---|
void |
applyBallotConstrainerQuery(BallotConstrainerQuery ballotConstrainerQuery)
Applies a ballot constrainer query to this polls.
|
void |
applyBallotConstrainerSequencing(BallotConstrainerSearchOrder ballotConstrainerSearchOrder)
Applies a ballot constrainer search order to this polls.
|
boolean |
canManageSmartPolls()
Tests if this user can manage smart polls.
|
BallotConstrainerQuery |
getBallotConstrainerQuery()
Gets a ballot constrainer query.
|
BallotConstrainerQuery |
getBallotConstrainerQueryFromInspector(BallotConstrainerQueryInspector ballotConstrainerQueryInspector)
Gets a ballot constrainer query from an inspector.
|
BallotConstrainerSearchOrder |
getBallotConstrainerSearchOrder()
Gets a ballot constrainer search order.
|
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
BallotConstrainerQueryInspector |
inspectBallotConstrainerQuery()
Gets a ballot constrainer query inspector for this polls.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getPollsId()
Polls
Id
associated with this
session. Polls Id
associated with this sessionmandatory
- This method must be implemented. Polls getPolls() throws OperationFailedException, PermissionDeniedException
Polls
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageSmartPolls()
PERMISSION_DENIED.
This is intended as a hint to an
application that may opt not to offer operations to unauthorized
users. false
if smart polls management is not
authorized, true
otherwisemandatory
- This method must be implemented. BallotConstrainerQuery getBallotConstrainerQuery()
mandatory
- This method must be implemented. BallotConstrainerSearchOrder getBallotConstrainerSearchOrder()
mandatory
- This method must be implemented. void applyBallotConstrainerQuery(BallotConstrainerQuery ballotConstrainerQuery) throws OperationFailedException, PermissionDeniedException
ballotConstrainerQuery
- the ballot constrainer queryNullArgumentException
- ballotConstrainerQuery
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
- ballotConstrainerQuery
not of this servicemandatory
- This method must be implemented. BallotConstrainerQueryInspector inspectBallotConstrainerQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredmandatory
- This method must be implemented. void applyBallotConstrainerSequencing(BallotConstrainerSearchOrder ballotConstrainerSearchOrder) throws OperationFailedException, PermissionDeniedException
ballotConstrainerSearchOrder
- the ballot constrainer search
orderNullArgumentException
-
ballotConstrainerSearchOrder
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
ballotConstrainerSearchOrder
not of this servicemandatory
- This method must be implemented. BallotConstrainerQuery getBallotConstrainerQueryFromInspector(BallotConstrainerQueryInspector ballotConstrainerQueryInspector)
ballotConstrainerQueryInspector
- a ballot constrainer query
inspectorNullArgumentException
-
ballotConstrainerQueryInspector
is null
UnsupportedException
-
ballotConstrainerQueryInspector
is not of this servicemandatory
- This method must be implemented.