public interface BallotConstrainerEnablerSmartPollsSession extends OsidSession
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.
| Modifier and Type | Method and Description |
|---|---|
void |
applyBallotConstrainerEnablerQuery(BallotConstrainerEnablerQuery ballotConstrainerEnablerQuery)
Applies a ballot constrainer enabler query to this polls.
|
void |
applyBallotConstrainerEnablerSequencing(BallotConstrainerEnablerSearchOrder ballotConstrainerEnablerSearchOrder)
Applies a ballot constrainer enabler search order to this polls.
|
boolean |
canManageSmartPolls()
Tests if this user can manage smart polls.
|
BallotConstrainerEnablerQuery |
getBallotConstrainerEnablerQuery()
Gets a ballot constrainer enabler query.
|
BallotConstrainerEnablerQuery |
getBallotConstrainerEnablerQueryFromInspector(BallotConstrainerEnablerQueryInspector ballotConstrainerEnablerQueryInspector)
Gets a ballot constrainer enabler query from an inspector.
|
BallotConstrainerEnablerSearchOrder |
getBallotConstrainerEnablerSearchOrder()
Gets a ballot constrainer enabler search order.
|
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
BallotConstrainerEnablerQueryInspector |
inspectBallotConstrainerEnablerQuery()
Gets a ballot constrainer enabler query inspector for this polls.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId 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. BallotConstrainerEnablerQuery getBallotConstrainerEnablerQuery()
mandatory - This method must be implemented. BallotConstrainerEnablerSearchOrder getBallotConstrainerEnablerSearchOrder()
mandatory - This method must be implemented. void applyBallotConstrainerEnablerQuery(BallotConstrainerEnablerQuery ballotConstrainerEnablerQuery) throws OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerQuery - the ballot constrainer enabler
queryNullArgumentException -
ballotConstrainerEnablerQuery is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException -
ballotConstrainerEnablerQuery not of this servicemandatory - This method must be implemented. BallotConstrainerEnablerQueryInspector inspectBallotConstrainerEnablerQuery() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredmandatory - This method must be implemented. void applyBallotConstrainerEnablerSequencing(BallotConstrainerEnablerSearchOrder ballotConstrainerEnablerSearchOrder) throws OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerSearchOrder - the ballot constrainer
enabler search orderNullArgumentException -
ballotConstrainerEnablerSearchOrder is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failure
occurredUnsupportedException -
ballotConstrainerEnablerSearchOrder not of this
servicemandatory - This method must be implemented. BallotConstrainerEnablerQuery getBallotConstrainerEnablerQueryFromInspector(BallotConstrainerEnablerQueryInspector ballotConstrainerEnablerQueryInspector)
ballotConstrainerEnablerQueryInspector - a ballot constrainer
enabler query inspectorNullArgumentException -
ballotConstrainerEnablerQueryInspector is null
UnsupportedException -
ballotConstrainerEnablerQueryInspector is not of this
servicemandatory - This method must be implemented.