public interface RaceConstrainerEnablerAdminSession extends OsidSession
This session creates and removes race constrainer enablers. The data
for create and update is provided via the
RaceConstrainerEnablerForm.
| Modifier and Type | Method and Description |
|---|---|
void |
aliasRaceConstrainerEnabler(Id raceConstrainerEnablerId,
Id aliasId)
Adds a
Id to a RaceConstrainerEnabler
for the purpose of creating compatibility. |
boolean |
canCreateRaceConstrainerEnabler()
Tests if this user can create race constrainer enablers.
|
boolean |
canCreateRaceConstrainerEnablerWithRecordTypes(Type[] raceConstrainerEnablerRecordTypes)
Tests if this user can create a single
RaceConstrainerEnabler
using the desired record types. |
boolean |
canDeleteRaceConstrainerEnablers()
Tests if this user can delete race constrainer enablers.
|
boolean |
canManageRaceConstrainerEnablerAliases()
Tests if this user can manage
Id aliases for race
constrainer enablers. |
boolean |
canUpdateRaceConstrainerEnablers()
Tests if this user can update race constrainer enablers.
|
RaceConstrainerEnabler |
createRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm)
Creates a new
RaceConstrainerEnabler. |
void |
deleteRaceConstrainerEnabler(Id raceConstrainerEnablerId)
Deletes a
RaceConstrainerEnabler. |
Polls |
getPolls()
Gets the
Polls associated with this session. |
Id |
getPollsId()
Gets the
Polls Id associated with this
session. |
RaceConstrainerEnablerForm |
getRaceConstrainerEnablerFormForCreate(Type[] raceConstrainerEnablerRecordTypes)
Gets the race constrainer enabler form for creating new race
constrainer enablers.
|
RaceConstrainerEnablerForm |
getRaceConstrainerEnablerFormForUpdate(Id raceConstrainerEnablerId)
Gets the race constrainer enabler form for updating an existing race
constrainer enabler.
|
void |
updateRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm)
Updates an existing race 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 canCreateRaceConstrainerEnabler()
RaceConstrainerEnabler
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 RaceConstrainerEnabler
creation is not authorized, true otherwisemandatory - This method must be implemented. boolean canCreateRaceConstrainerEnablerWithRecordTypes(Type[] raceConstrainerEnablerRecordTypes)
RaceConstrainerEnabler
using the desired record types. While
VotingRulesManager.getRaceConstrainerEnablerRecordTypes() can
be used to examine which records are supported, this method tests
which record(s) are required for creating a specific
RaceConstrainerEnabler. Providing an empty array tests if a
RaceConstrainerEnabler can be created with no records.raceConstrainerEnablerRecordTypes - array of race constrainer
enabler record types true if RaceConstrainerEnabler
creation using the specified record Types is
supported, false otherwiseNullArgumentException -
raceConstrainerEnablerRecordTypes is null
mandatory - This method must be implemented. RaceConstrainerEnablerForm getRaceConstrainerEnablerFormForCreate(Type[] raceConstrainerEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException
raceConstrainerEnablerRecordTypes - array of race constrainer
enabler record typesNullArgumentException -
raceConstrainerEnablerRecordTypes is null
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException - unable to get form for requested
record typesmandatory - This method must be implemented. RaceConstrainerEnabler createRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException
RaceConstrainerEnabler. raceConstrainerEnablerForm - the form for this
RaceConstrainerEnabler RaceConstrainerEnabler IllegalStateException -
raceConstrainerEnablerForm already used for a create
transactionInvalidArgumentException - one or more of the form
elements is invalidNullArgumentException -
raceConstrainerEnablerForm is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException -
raceConstrainerEnablerForm did not originate from
getRaceConstrainerEnablerFormForCreate() mandatory - This method must be implemented. boolean canUpdateRaceConstrainerEnablers()
RaceConstrainerEnabler
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 RaceConstrainerEnabler
modification is not authorized, true otherwisemandatory - This method must be implemented. RaceConstrainerEnablerForm getRaceConstrainerEnablerFormForUpdate(Id raceConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
raceConstrainerEnablerId - the Id of the
RaceConstrainerEnabler NotFoundException - raceConstrainerEnablerId
is not foundNullArgumentException - raceConstrainerEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. void updateRaceConstrainerEnabler(RaceConstrainerEnablerForm raceConstrainerEnablerForm) throws OperationFailedException, PermissionDeniedException
raceConstrainerEnablerForm - the form containing the elements to
be updatedIllegalStateException -
raceConstrainerEnablerForm already used for an update
transactionInvalidArgumentException - the form contains an invalid
valueNullArgumentException -
raceConstrainerEnablerForm is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failureUnsupportedException -
raceConstrainerEnablerForm did not originate from
getRaceConstrainerEnablerFormForUpdate() mandatory - This method must be implemented. boolean canDeleteRaceConstrainerEnablers()
RaceConstrainerEnabler
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 RaceConstrainerEnabler
deletion is not authorized, true otherwisemandatory - This method must be implemented. void deleteRaceConstrainerEnabler(Id raceConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
RaceConstrainerEnabler. raceConstrainerEnablerId - the Id of the
RaceConstrainerEnabler to removeNotFoundException - raceConstrainerEnablerId
not foundNullArgumentException - raceConstrainerEnablerId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canManageRaceConstrainerEnablerAliases()
Id aliases for race
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 RaceConstrainerEnabler
aliasing is not authorized, true otherwisemandatory - This method must be implemented. void aliasRaceConstrainerEnabler(Id raceConstrainerEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
Id to a RaceConstrainerEnabler
for the purpose of creating compatibility. The primary Id
of the RaceConstrainerEnabler 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
constrainer enabler. it is reassigned to the given race constrainer
enabler Id. raceConstrainerEnablerId - the Id of a
RaceConstrainerEnabler aliasId - the alias Id AlreadyExistsException - aliasId is
already assignedNotFoundException - raceConstrainerEnablerId
not foundNullArgumentException - raceConstrainerEnablerId
or aliasId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.