Interface RaceProcessorEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply RaceProcessorEnablers to
RaceProcessors . a RaceProcessor with multiple
RaceProcessorEnablers means any positive rule evaluation across the
enablers result in an effective RaceProcessor .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRaceProcessorEnablerToRaceProcessor(Id raceProcessorEnablerId, Id raceProcessorId) Adds an existingRaceProcessorEnablerto aRaceProcessor.booleanTests if this user can alter race processor enabler/race processor mappings.booleanTests if this user can orderRaceProcessorEnablers.getPolls()Gets thePollsassociated with this session.Gets thePollsIdassociated with this session.voidmoveRaceProcessorEnablerAhead(Id raceProcessorEnablerId, Id raceProcessorId, Id referenceId) Reorders race processor enablers for a race processor by moving the specified race processor enabler in front of a reference race processor enabler.voidmoveRaceProcessorEnablerBehind(Id raceProcessorEnablerId, Id raceProcessorId, Id referenceId) Reorders race processor enablers for a race processor by moving the specified race processor enabler behind a reference race processor enabler.voidorderRaceProcessorEnablers(Id[] raceProcessorEnablerIds, Id raceProcessorId) Reorders a set of race processor enablers for a race processor.voidunassignRaceProcessorEnablerFromRaceProcessor(Id raceProcessorEnablerId, Id raceProcessorId) Removes aRaceProcessorEnablerfrom aRaceProcessor.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.
-
canAssignRaceProcessorEnablers
boolean canAssignRaceProcessorEnablers()Tests if this user can alter race processor enabler/race processor mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
assignRaceProcessorEnablerToRaceProcessor
void assignRaceProcessorEnablerToRaceProcessor(Id raceProcessorEnablerId, Id raceProcessorId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRaceProcessorEnablerto aRaceProcessor.- Parameters:
raceProcessorEnablerId- theIdof theRaceProcessorEnablerraceProcessorId- theIdof theRaceProcessor- Throws:
AlreadyExistsException-raceProcessorEnablerIdis already applied toraceProcessorIdNotFoundException-raceProcessorEnablerIdorraceProcessorIdnot foundNullArgumentException-raceProcessorEnablerIdorraceProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRaceProcessorEnablerFromRaceProcessor
void unassignRaceProcessorEnablerFromRaceProcessor(Id raceProcessorEnablerId, Id raceProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRaceProcessorEnablerfrom aRaceProcessor.- Parameters:
raceProcessorEnablerId- theIdof theRaceProcessorEnablerraceProcessorId- theIdof theRaceProcessor- Throws:
NotFoundException-raceProcessorEnablerIdorraceProcessorIdnot found orraceProcessorEnablerIdnot applied toraceProcessorIdNullArgumentException-raceProcessorEnablerIdorraceProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceRaceProcessorEnablers
boolean canSequenceRaceProcessorEnablers()Tests if this user can orderRaceProcessorEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifRaceProcessorEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveRaceProcessorEnablerAhead
void moveRaceProcessorEnablerAhead(Id raceProcessorEnablerId, Id raceProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race processor enablers for a race processor by moving the specified race processor enabler in front of a reference race processor enabler.- Parameters:
raceProcessorEnablerId- theIdof aRaceProcessorEnablerraceProcessorId- theIdof aRaceProcessorreferenceId- the reference race processor enablerId- Throws:
NotFoundException-raceProcessorEnablerId, raceProcessorId, orreferenceIdnot found or,raceProcessorEnablerIdorreferenceIdnot related toprocessorIdNullArgumentException-raceProcessorEnablerId, raceProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveRaceProcessorEnablerBehind
void moveRaceProcessorEnablerBehind(Id raceProcessorEnablerId, Id raceProcessorId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race processor enablers for a race processor by moving the specified race processor enabler behind a reference race processor enabler.- Parameters:
raceProcessorEnablerId- theIdof aRaceProcessorEnablerraceProcessorId- theIdof aRaceProcessorreferenceId- the reference race processor enablerId- Throws:
NotFoundException-praceProcessorEnablerId, raceProcessorId, orreferenceIdnot found or,raceProcessorEnablerIdorreferenceIdnot related toprocessorIdNullArgumentException-raceProcessorEnablerId, raceProcessorId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderRaceProcessorEnablers
void orderRaceProcessorEnablers(Id[] raceProcessorEnablerIds, Id raceProcessorId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of race processor enablers for a race processor.- Parameters:
raceProcessorEnablerIds- theIdsfor a set ofRaceProcessorEnablersraceProcessorId- theIdof aRaceProcessor- Throws:
NotFoundException-raceProcessorIdnot found or, araceProcessorEnablerIdnot related toraceProcessorIdNullArgumentException-raceProcessorEnablerIdsorraceProcessorIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-