public interface BallotConstrainerEnablerRuleLookupSession extends OsidSession
This session provides methods to retrieve
BallotConstrainerEnabler to BallotConstrainer
mappings. A BallotConstrainer with multiple
BallotConstrainerEnablers means any positive rule evaluation
across the enablers result in an effective BallotConstrainer.
This lookup session defines several views:
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupBallotConstrainerEnablerRules()
Tests if this user can perform lookups of ballot constrainer
enabler/ballot constrainer mappings.
|
IdList |
getBallotConstrainerEnablerIdsForBallotConstrainer(Id ballotConstrainerId)
Gets the
BallotConstrainerEnabler Id associated with a
BallotConstrainer. |
BallotConstrainerEnablerList |
getBallotConstrainerEnablersForBallotConstrainer(Id ballotConstrainerId)
Gets the
BallotConstrainerEnablers associated with a
BallotConstrainer. |
IdList |
getBallotConstrainerIdsForBallotConstrainerEnabler(Id ballotConstrainerEnablerId)
Gets the
BallotConstrainer Ids mapped to
a BallotConstrainerEnabler. |
BallotConstrainerList |
getBallotConstrainersForBallotConstrainerEnabler(Id ballotConstrainerEnablerId)
Gets the
BallotConstrainers mapped to a
BallotConstrainerEnabler. |
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
void |
useComparativeBallotConstrainerEnablerRuleView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedPollsView()
Federates the view for methods in this session.
|
void |
useIsolatedPollsView()
Isolates the view for methods in this session.
|
void |
usePlenaryBallotConstrainerEnablerRuleView()
A complete view of the
BallotConstrainerEnabler and
BallotConstrainer returns is desired. |
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 canLookupBallotConstrainerEnablerRules()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer lookup operations to
unauthorized users. false if looking up mappings is not authorized,
true otherwisemandatory - This method must be implemented. void useComparativeBallotConstrainerEnablerRuleView()
mandatory - This method is must be implemented. void usePlenaryBallotConstrainerEnablerRuleView()
BallotConstrainerEnabler and
BallotConstrainer returns is desired. Methods will
return what is requested or result in an error. This view is used when
greater precision is desired at the expense of interoperability.mandatory - This method is must be implemented. void useFederatedPollsView()
mandatory - This method is must be implemented. void useIsolatedPollsView()
mandatory - This method is must be implemented. IdList getBallotConstrainerEnablerIdsForBallotConstrainer(Id ballotConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BallotConstrainerEnabler Id associated with a
BallotConstrainer. ballotConstrainerId - Id of the
BallotConstrainer Ids NotFoundException - ballotConstrainerId
is not foundNullArgumentException - ballotConstrainerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BallotConstrainerEnablerList getBallotConstrainerEnablersForBallotConstrainer(Id ballotConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BallotConstrainerEnablers associated with a
BallotConstrainer. ballotConstrainerId - Id of the
BallotConstrainer NotFoundException - ballotConstrainerId
is not foundNullArgumentException - ballotConstrainerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. IdList getBallotConstrainerIdsForBallotConstrainerEnabler(Id ballotConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BallotConstrainer Ids mapped to
a BallotConstrainerEnabler. ballotConstrainerEnablerId - Id of a
BallotConstrainerEnabler Ids NotFoundException - ballotConstrainerEnablerId
is not foundNullArgumentException -
ballotConstrainerEnablerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. BallotConstrainerList getBallotConstrainersForBallotConstrainerEnabler(Id ballotConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BallotConstrainers mapped to a
BallotConstrainerEnabler. ballotConstrainerEnablerId - Id of a
BallotConstrainerEnabler NotFoundException - ballotConstrainerEnablerId
is not foundNullArgumentException -
ballotConstrainerEnablerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.