public interface BallotConstrainerEnablerRuleApplicationSession extends OsidSession
This session provides methods to apply BallotConstrainerEnablers
to BallotConstrainers.
A BallotConstrainer
with multiple BallotConstrainerEnablers
means any
positive rule evaluation across the enablers result in an effective
BallotConstrainer.
Modifier and Type | Method and Description |
---|---|
void |
assignBallotConstrainerEnablerToBallotConstrainer(Id ballotConstrainerEnablerId,
Id ballotConstrainerId)
Adds an existing
BallotConstrainerEnabler to a
BallotConstrainer. |
boolean |
canAssignBallotConstrainerEnablers()
Tests if this user can alter ballot constrainer enabler/ballot
constrainer mappings.
|
boolean |
canSequenceBallotConstrainerEnablers()
Tests if this user can order
BallotConstrainerEnablers. |
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
void |
moveBallotConstrainerEnablerAhead(Id ballotConstrainerEnablerId,
Id ballotConstrainerId,
Id referenceId)
Reorders ballot constrainer enablers for a ballot constrainer by
moving the specified ballot constrainer enabler in front of a
reference ballot constrainer enabler.
|
void |
moveBallotConstrainerEnablerBehind(Id ballotConstrainerEnablerId,
Id ballotConstrainerId,
Id referenceId)
Reorders ballot constrainer enablers for a ballot constrainer by
moving the specified ballot constrainer enabler behind a reference
ballot constrainer enabler.
|
void |
orderBallotConstrainerEnablers(Id[] ballotConstrainerEnablerIds,
Id ballotConstrainerId)
Reorders a set of ballot constrainer enablers for a ballot
constrainer.
|
void |
unassignBallotConstrainerEnablerFromBallotConstrainer(Id ballotConstrainerEnablerId,
Id ballotConstrainerId)
Removes a
BallotConstrainerEnabler from a
BallotConstrainer. |
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 canAssignBallotConstrainerEnablers()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. void assignBallotConstrainerEnablerToBallotConstrainer(Id ballotConstrainerEnablerId, Id ballotConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
BallotConstrainerEnabler
to a
BallotConstrainer.
ballotConstrainerEnablerId
- the Id
of the
BallotConstrainerEnabler
ballotConstrainerId
- the Id
of the
BallotConstrainer
AlreadyExistsException
-
ballotConstrainerEnablerId
is already applied to
ballotConstrainerId
NotFoundException
- ballotConstrainerEnablerId
or ballotConstrainerId
not foundNullArgumentException
-
ballotConstrainerEnablerId
or
ballotConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignBallotConstrainerEnablerFromBallotConstrainer(Id ballotConstrainerEnablerId, Id ballotConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BallotConstrainerEnabler
from a
BallotConstrainer.
ballotConstrainerEnablerId
- the Id
of the
BallotConstrainerEnabler
ballotConstrainerId
- the Id
of the
BallotConstrainer
NotFoundException
- ballotConstrainerEnablerId
or ballotConstrainerId
not found or
ballotConstrainerEnablerId
not applied to
ballotConstrainerId
NullArgumentException
-
ballotConstrainerEnablerId
or
ballotConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceBallotConstrainerEnablers()
BallotConstrainerEnablers.
A return of true does not guarantee successful authorization. A return
of false indicates that it is known sequencing operations will result
in a PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer sequencing operations to an
unauthorized user. false
if BallotConstrainerEnabler
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveBallotConstrainerEnablerAhead(Id ballotConstrainerEnablerId, Id ballotConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerId
- the Id
of a
BallotConstrainerEnabler
ballotConstrainerId
- the Id
of a
BallotConstrainer
referenceId
- the reference ballot constrainer enabler Id
NotFoundException
- ballotConstrainerEnablerId,
ballotConstrainerId,
or referenceId
not
found or, ballotConstrainerId
or
referenceId
not related to ballotConstrainerId
NullArgumentException
-
ballotConstrainerEnablerId, ballotConstrainerId,
or
referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveBallotConstrainerEnablerBehind(Id ballotConstrainerEnablerId, Id ballotConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerId
- the Id
of a
BallotConstrainerEnabler
ballotConstrainerId
- the Id
of a
BallotConstrainer
referenceId
- the reference ballot constrainer enabler Id
NotFoundException
- ballotConstrainerEnablerId,
ballotConstrainerId,
or referenceId
not
found or, ballotConstrainerId
or
referenceId
not related to ballotConstrainerId
NullArgumentException
-
ballotConstrainerEnablerId, ballotConstrainerId,
or
referenceId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderBallotConstrainerEnablers(Id[] ballotConstrainerEnablerIds, Id ballotConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerIds
- the Ids
for a set
of BallotConstrainerEnablers
ballotConstrainerId
- the Id
of a
BallotConstrainer
NotFoundException
- ballotConstrainerId
not found or, a ballotConstrainerEnablerId
not
related to ballotConstrainerId
NullArgumentException
-
ballotConstrainerEnablerIds
or
ballotConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.