public interface BallotConstrainerEnablerAdminSession extends OsidSession
This session creates and removes ballot constrainer enablers. The data
for create and update is provided via the
BallotConstrainerEnablerForm.
| Modifier and Type | Method and Description |
|---|---|
void |
aliasBallotConstrainerEnabler(Id ballotConstrainerEnablerId,
Id aliasId)
Adds an
Id to a BallotConstrainerEnabler
for the purpose of creating compatibility. |
boolean |
canCreateBallotConstrainerEnabler()
Tests if this user can create ballot constrainer enablers.
|
boolean |
canCreateBallotConstrainerEnablerWithRecordTypes(Type[] ballotConstrainerEnablerRecordTypes)
Tests if this user can create a single
BallotConstrainerEnabler
using the desired record types. |
boolean |
canDeleteBallotConstrainerEnablers()
Tests if this user can delete ballot constrainer enablers.
|
boolean |
canManageBallotConstrainerEnablerAliases()
Tests if this user can manage
Id aliases for ballot
constrainer enablers. |
boolean |
canUpdateBallotConstrainerEnablers()
Tests if this user can update ballot constrainer enablers.
|
BallotConstrainerEnabler |
createBallotConstrainerEnabler(BallotConstrainerEnablerForm ballotConstrainerEnablerForm)
Creates a new
BallotConstrainerEnabler. |
void |
deleteBallotConstrainerEnabler(Id ballotConstrainerEnablerId)
Deletes a
BallotConstrainerEnabler. |
BallotConstrainerEnablerForm |
getBallotConstrainerEnablerFormForCreate(Type[] ballotConstrainerEnablerRecordTypes)
Gets the ballot constrainer enabler form for creating new ballot
constrainer enablers.
|
BallotConstrainerEnablerForm |
getBallotConstrainerEnablerFormForUpdate(Id ballotConstrainerEnablerId)
Gets the ballot constrainer enabler form for updating a existing
ballot constrainer enabler.
|
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
void |
updateBallotConstrainerEnabler(BallotConstrainerEnablerForm ballotConstrainerEnablerForm)
Updates an existing ballot constrainer enabler.
|
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 canCreateBallotConstrainerEnabler()
BallotConstrainerEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer create
operations to an unauthorized user. false if BallotConstrainerEnabler
creation is not authorized, true
otherwisemandatory - This method must be implemented. boolean canCreateBallotConstrainerEnablerWithRecordTypes(Type[] ballotConstrainerEnablerRecordTypes)
BallotConstrainerEnabler
using the desired record types. While
VotingRulesManager.getBallotConstrainerEnablerRecordTypes()
can be used to examine which records are supported, this method tests
which record(s) are required for creating a specific
BallotConstrainerEnabler. Providing an empty array tests if a
BallotConstrainerEnabler can be created with no
records.ballotConstrainerEnablerRecordTypes - array of ballot
constrainer enabler record types true if BallotConstrainerEnabler
creation using the specified record Types is
supported, false otherwiseNullArgumentException -
ballotConstrainerEnablerRecordTypes is null
mandatory - This method must be implemented. BallotConstrainerEnablerForm getBallotConstrainerEnablerFormForCreate(Type[] ballotConstrainerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerRecordTypes - array of ballot
constrainer enabler record typesNullArgumentException -
ballotConstrainerEnablerRecordTypes is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - unable to get form for requested
record typesmandatory - This method must be implemented. BallotConstrainerEnabler createBallotConstrainerEnabler(BallotConstrainerEnablerForm ballotConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException
BallotConstrainerEnabler. ballotConstrainerEnablerForm - the form for this
BallotConstrainerEnabler BallotConstrainerEnabler IllegalStateException -
ballotConstrainerEnablerForm already used for a create
transactionInvalidArgumentException - one or more of the form
elements is invalidNullArgumentException -
ballotConstrainerEnablerForm is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException -
ballotConstrainerEnablerForm did not originate from
getBallotConstrainerEnablerFormForCreate() mandatory - This method must be implemented. boolean canUpdateBallotConstrainerEnablers()
BallotConstrainerEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer update
operations to an unauthorized user. false if BallotConstrainerEnabler
modification is not authorized, true
otherwisemandatory - This method must be implemented. BallotConstrainerEnablerForm getBallotConstrainerEnablerFormForUpdate(Id ballotConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerId - the Id of the
BallotConstrainerEnabler NotFoundException - ballotConstrainerEnablerId
is not foundNullArgumentException -
ballotConstrainerEnablerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void updateBallotConstrainerEnabler(BallotConstrainerEnablerForm ballotConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException
ballotConstrainerEnablerForm - the form containing the elements
to be updatedIllegalStateException -
ballotConstrainerEnablerForm already used for an
update transactionInvalidArgumentException - the form contains an invalid
valueNullArgumentException -
ballotConstrainerEnablerForm is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException -
ballotConstrainerEnablerForm did not originate from
getBallotConstrainerEnablerFormFoUpdate() mandatory - This method must be implemented. boolean canDeleteBallotConstrainerEnablers()
BallotConstrainerEnabler
will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer delete
operations to an unauthorized user. false if BallotConstrainerEnabler
deletion is not authorized, true
otherwisemandatory - This method must be implemented. void deleteBallotConstrainerEnabler(Id ballotConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
BallotConstrainerEnabler. ballotConstrainerEnablerId - the Id of the
BallotConstrainerEnabler to removeNotFoundException - ballotConstrainerEnablerId
not foundNullArgumentException -
ballotConstrainerEnablerId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageBallotConstrainerEnablerAliases()
Id aliases for ballot
constrainer enablers. A return of true does not guarantee successful
authorization. A return of false indicates that it is known changing
an alias will result in a PERMISSION_DENIED. This is
intended as a hint to an application that may opt not to offer alias
operations to an unauthorized user. false if BallotConstrainerEnabler
aliasing is not authorized, true
otherwisemandatory - This method must be implemented. void aliasBallotConstrainerEnabler(Id ballotConstrainerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id to a BallotConstrainerEnabler
for the purpose of creating compatibility. The primary Id
of the BallotConstrainerEnabler is determined
by the provider. The new Id performs as an alias to the
primary Id . If the alias is a pointer to another
ballot constrainer enabler. it is reassigned to the given ballot
constrainer enabler Id. ballotConstrainerEnablerId - the Id of a
BallotConstrainerEnabler aliasId - the alias Id AlreadyExistsException - aliasId is
already assignedNotFoundException - ballotConstrainerEnablerId
not foundNullArgumentException -
ballotConstrainerEnablerId or aliasId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.