public interface RaceProcessorEnablerAdminSession extends OsidSession
This session creates and removes race processor enablers. The data for
create and update is provided via the RaceProcessorEnablerForm.
Modifier and Type | Method and Description |
---|---|
void |
aliasRaceProcessorEnabler(Id raceProcessorEnablerId,
Id aliasId)
Adds a
Id to a RaceProcessorEnabler for
the purpose of creating compatibility. |
boolean |
canCreateRaceProcessorEnabler()
Tests if this user can create race processor enablers.
|
boolean |
canCreateRaceProcessorEnablerWithRecordTypes(Type[] raceProcessorEnablerRecordTypes)
Tests if this user can create a single
RaceProcessorEnabler
using the desired record types. |
boolean |
canDeleteRaceProcessorEnablers()
Tests if this user can delete race processor enablers.
|
boolean |
canManageRaceProcessorEnablerAliases()
Tests if this user can manage
Id aliases for race
processor enablers. |
boolean |
canUpdateRaceProcessorEnablers()
Tests if this user can update race processor enablers.
|
RaceProcessorEnabler |
createRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm)
Creates a new
RaceProcessorEnabler. |
void |
deleteRaceProcessorEnabler(Id raceProcessorEnablerId)
Deletes a
RaceProcessorEnabler. |
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
RaceProcessorEnablerForm |
getRaceProcessorEnablerFormForCreate(Type[] raceProcessorEnablerRecordTypes)
Gets the race processor enabler form for creating new race processor
enablers.
|
RaceProcessorEnablerForm |
getRaceProcessorEnablerFormForUpdate(Id raceProcessorEnablerId)
Gets the race processor enabler form for updating an existing race
processor enabler.
|
void |
updateRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm)
Updates an existing race processor enabler.
|
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 canCreateRaceProcessorEnabler()
RaceProcessorEnabler
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 RaceProcessorEnabler
creation is not authorized, true
otherwisemandatory
- This method must be implemented. boolean canCreateRaceProcessorEnablerWithRecordTypes(Type[] raceProcessorEnablerRecordTypes)
RaceProcessorEnabler
using the desired record types. While
VotingRulesManager.getRaceProcessorEnablerRecordTypes()
can be
used to examine which records are supported, this method tests which
record(s) are required for creating a specific
RaceProcessorEnabler.
Providing an empty array tests if a
RaceProcessorEnabler
can be created with no records.raceProcessorEnablerRecordTypes
- array of race processor
enabler record types true
if RaceProcessorEnabler
creation using the specified record Types
is
supported, false
otherwiseNullArgumentException
-
raceProcessorEnablerRecordTypes
is null
mandatory
- This method must be implemented. RaceProcessorEnablerForm getRaceProcessorEnablerFormForCreate(Type[] raceProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
raceProcessorEnablerRecordTypes
- array of race processor
enabler record typesNullArgumentException
-
raceProcessorEnablerRecordTypes
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- unable to get form for requested
record typesmandatory
- This method must be implemented. RaceProcessorEnabler createRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException
RaceProcessorEnabler.
raceProcessorEnablerForm
- the form for this
RaceProcessorEnabler
RaceProcessorEnabler
IllegalStateException
- raceProcessorEnablerForm
already used for a create transactionInvalidArgumentException
- one or more of the form
elements is invalidNullArgumentException
- raceProcessorEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- raceProcessorEnablerForm
did not originate from getRaceProcessorrEnablerFormForCreate()
mandatory
- This method must be implemented. boolean canUpdateRaceProcessorEnablers()
RaceProcessorEnabler
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 RaceProcessorEnabler
modification is not authorized, true
otherwisemandatory
- This method must be implemented. RaceProcessorEnablerForm getRaceProcessorEnablerFormForUpdate(Id raceProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
raceProcessorEnablerId
- the Id
of the
RaceProcessorEnabler
NotFoundException
- raceProcessorEnablerId
is not foundNullArgumentException
- raceProcessorEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void updateRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException
raceProcessorEnablerForm
- the form containing the elements to
be updatedIllegalStateException
- raceProcessorEnablerForm
already used for an update transactionInvalidArgumentException
- the form contains an invalid
valueNullArgumentException
- raceProcessorEnablerForm
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- raceProcessorEnablerForm
did not originate from getRaceProcessorrEnablerFormForUpdate()
mandatory
- This method must be implemented. boolean canDeleteRaceProcessorEnablers()
RaceProcessorEnabler
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 RaceProcessorEnabler
deletion is not authorized, true
otherwisemandatory
- This method must be implemented. void deleteRaceProcessorEnabler(Id raceProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RaceProcessorEnabler.
raceProcessorEnablerId
- the Id
of the
RaceProcessorEnabler
to removeNotFoundException
- raceProcessorEnablerId
not foundNullArgumentException
- raceProcessorEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canManageRaceProcessorEnablerAliases()
Id
aliases for race
processor 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 RaceProcessorEnabler
aliasing is not authorized, true
otherwisemandatory
- This method must be implemented. void aliasRaceProcessorEnabler(Id raceProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id
to a RaceProcessorEnabler
for
the purpose of creating compatibility. The primary Id
of the RaceProcessorEnabler
is determined by the
provider. The new Id
performs as an alias to the
primary Id
. If the alias is a pointer to another race
processor enabler. it is reassigned to the given race processor
enabler Id.
raceProcessorEnablerId
- the Id
of a
RaceProcessorEnabler
aliasId
- the alias Id
AlreadyExistsException
- aliasId
is
already assignedNotFoundException
- raceProcessorEnablerId
not foundNullArgumentException
- raceProcessorEnablerId
or aliasId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.