Interface RaceProcessorEnablerAdminSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session creates and removes race processor enablers. The data for
create and update is provided via the RaceProcessorEnablerForm .
-
Method Summary
Modifier and TypeMethodDescriptionvoidaliasRaceProcessorEnabler(Id raceProcessorEnablerId, Id aliasId) Adds aIdto aRaceProcessorEnablerfor the purpose of creating compatibility.booleanTests if this user can create race processor enablers.booleancanCreateRaceProcessorEnablerWithRecordTypes(Type[] raceProcessorEnablerRecordTypes) Tests if this user can create a singleRaceProcessorEnablerusing the desired record types.booleanTests if this user can delete race processor enablers.booleanTests if this user can manageIdaliases for race processor enablers.booleanTests if this user can update race processor enablers.createRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm) Creates a newRaceProcessorEnabler.voiddeleteRaceProcessorEnabler(Id raceProcessorEnablerId) Deletes aRaceProcessorEnabler.getPolls()Gets thePollsassociated with this session.Gets thePollsIdassociated with this session.getRaceProcessorEnablerFormForCreate(Type[] raceProcessorEnablerRecordTypes) Gets the race processor enabler form for creating new race processor enablers.getRaceProcessorEnablerFormForUpdate(Id raceProcessorEnablerId) Gets the race processor enabler form for updating an existing race processor enabler.voidupdateRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm) Updates an existing race processor enabler.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getPollsId
Id getPollsId()Gets thePollsIdassociated with this session.- Returns:
- the
Polls Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getPolls
Gets thePollsassociated with this session.- Returns:
- the polls
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canCreateRaceProcessorEnabler
boolean canCreateRaceProcessorEnabler()Tests if this user can create race processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known creating aRaceProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer create operations to an unauthorized user.- Returns:
falseifRaceProcessorEnablercreation is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canCreateRaceProcessorEnablerWithRecordTypes
Tests if this user can create a singleRaceProcessorEnablerusing the desired record types. WhileVotingRulesManager.getRaceProcessorEnablerRecordTypes()can be used to examine which records are supported, this method tests which record(s) are required for creating a specificRaceProcessorEnabler. Providing an empty array tests if aRaceProcessorEnablercan be created with no records.- Parameters:
raceProcessorEnablerRecordTypes- array of race processor enabler record types- Returns:
trueifRaceProcessorEnablercreation using the specified recordTypesis supported,falseotherwise- Throws:
NullArgumentException-raceProcessorEnablerRecordTypesisnull- Compliance:
mandatory- This method must be implemented.
-
getRaceProcessorEnablerFormForCreate
RaceProcessorEnablerForm getRaceProcessorEnablerFormForCreate(Type[] raceProcessorEnablerRecordTypes) throws OperationFailedException, PermissionDeniedException Gets the race processor enabler form for creating new race processor enablers. A new form should be requested for each create transaction.- Parameters:
raceProcessorEnablerRecordTypes- array of race processor enabler record types- Returns:
- the race processor enabler form
- Throws:
NullArgumentException-raceProcessorEnablerRecordTypesisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException- unable to get form for requested record types- Compliance:
mandatory- This method must be implemented.
-
createRaceProcessorEnabler
RaceProcessorEnabler createRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Creates a newRaceProcessorEnabler.- Parameters:
raceProcessorEnablerForm- the form for thisRaceProcessorEnabler- Returns:
- the new
RaceProcessorEnabler - Throws:
IllegalStateException-raceProcessorEnablerFormalready used for a create transactionInvalidArgumentException- one or more of the form elements is invalidNullArgumentException-raceProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-raceProcessorEnablerForm did not originate from getRaceProcessorrEnablerFormForCreate()- Compliance:
mandatory- This method must be implemented.
-
canUpdateRaceProcessorEnablers
boolean canUpdateRaceProcessorEnablers()Tests if this user can update race processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known updating aRaceProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer update operations to an unauthorized user.- Returns:
falseifRaceProcessorEnablermodification is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
getRaceProcessorEnablerFormForUpdate
RaceProcessorEnablerForm getRaceProcessorEnablerFormForUpdate(Id raceProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the race processor enabler form for updating an existing race processor enabler. A new race processor enabler form should be requested for each update transaction.- Parameters:
raceProcessorEnablerId- theIdof theRaceProcessorEnabler- Returns:
- the race processor enabler form
- Throws:
NotFoundException-raceProcessorEnablerIdis not foundNullArgumentException-raceProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
updateRaceProcessorEnabler
void updateRaceProcessorEnabler(RaceProcessorEnablerForm raceProcessorEnablerForm) throws OperationFailedException, PermissionDeniedException Updates an existing race processor enabler.- Parameters:
raceProcessorEnablerForm- the form containing the elements to be updated- Throws:
IllegalStateException-raceProcessorEnablerFormalready used for an update transactionInvalidArgumentException- the form contains an invalid valueNullArgumentException-raceProcessorEnablerFormisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-raceProcessorEnablerForm did not originate from getRaceProcessorrEnablerFormForUpdate()- Compliance:
mandatory- This method must be implemented.
-
canDeleteRaceProcessorEnablers
boolean canDeleteRaceProcessorEnablers()Tests if this user can delete race processor enablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known deleting aRaceProcessorEnablerwill result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer delete operations to an unauthorized user.- Returns:
falseifRaceProcessorEnablerdeletion is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
deleteRaceProcessorEnabler
void deleteRaceProcessorEnabler(Id raceProcessorEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Deletes aRaceProcessorEnabler.- Parameters:
raceProcessorEnablerId- theIdof theRaceProcessorEnablerto remove- Throws:
NotFoundException-raceProcessorEnablerIdnot foundNullArgumentException-raceProcessorEnablerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canManageRaceProcessorEnablerAliases
boolean canManageRaceProcessorEnablerAliases()Tests if this user can manageIdaliases 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 aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer alias operations to an unauthorized user.- Returns:
falseifRaceProcessorEnableraliasing is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
aliasRaceProcessorEnabler
void aliasRaceProcessorEnabler(Id raceProcessorEnablerId, Id aliasId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds aIdto aRaceProcessorEnablerfor the purpose of creating compatibility. The primaryIdof theRaceProcessorEnableris determined by the provider. The newIdperforms as an alias to the primaryId. If the alias is a pointer to another race processor enabler. it is reassigned to the given race processor enablerId.- Parameters:
raceProcessorEnablerId- theIdof aRaceProcessorEnableraliasId- the aliasId- Throws:
AlreadyExistsException-aliasIdis already assignedNotFoundException-raceProcessorEnablerIdnot foundNullArgumentException-raceProcessorEnablerIdoraliasIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-