Interface RaceProcessorRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply RaceProcessors to
Races .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRaceProcessorToRace(Id raceProcessorId, Id raceId) Adds an existingRaceProcessorto aRace.booleanTests if this user can alter race processor/race mappings.booleanTests if this user can orderRaceProcessors.getPolls()Gets thePollsassociated with this session.Gets thePollsIdassociated with this session.voidmoveRaceProcessorAhead(Id raceProcessorId, Id raceId, Id referenceId) Reorders race processors for a race by moving the specified race processor in front of a reference race processor.voidmoveRaceProcessorBehind(Id raceProcessorId, Id raceId, Id referenceId) Reorders race processors for a race by moving the specified race processor behind a reference race processor.voidorderRaceProcessors(Id[] raceProcessorIds, Id raceId) Reorders a set of race processors for a race.voidunassignRaceProcessorFromRace(Id raceProcessorId, Id raceId) Removes aRaceProcessorfrom aRace.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.
-
canAssignRaceProcessors
boolean canAssignRaceProcessors()Tests if this user can alter race processor/race 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.
-
assignRaceProcessorToRace
void assignRaceProcessorToRace(Id raceProcessorId, Id raceId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRaceProcessorto aRace.- Parameters:
raceProcessorId- theIdof theRaceProcessorraceId- theIdof theRace- Throws:
AlreadyExistsException-raceProcessorIdis already applied toraceIdNotFoundException-raceProcessorIdorraceIdnot foundNullArgumentException-raceProcessorIdorraceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRaceProcessorFromRace
void unassignRaceProcessorFromRace(Id raceProcessorId, Id raceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRaceProcessorfrom aRace.- Parameters:
raceProcessorId- theIdof theRaceProcessorraceId- theIdof theRace- Throws:
NotFoundException-raceProcessorIdorraceIdnot found orraceProcessorIdnot applied toraceIdNullArgumentException-raceProcessorIdorraceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceRaceProcessors
boolean canSequenceRaceProcessors()Tests if this user can orderRaceProcessors. 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:
falseifRaceProcessorordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveRaceProcessorAhead
void moveRaceProcessorAhead(Id raceProcessorId, Id raceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race processors for a race by moving the specified race processor in front of a reference race processor.- Parameters:
raceProcessorId- theIdof aRaceProcessorraceId- theIdof aRacereferenceId- the reference race processorId- Throws:
NotFoundException-raceProcessorId, raceId, orreferenceIdnot found or,raceProcessorIdorreferenceIdnot related toraceIdNullArgumentException-raceProcessorId, raceId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveRaceProcessorBehind
void moveRaceProcessorBehind(Id raceProcessorId, Id raceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race processors for a race by moving the specified race processor behind a reference race processor.- Parameters:
raceProcessorId- theIdof aRaceProcessorraceId- theIdof aRacereferenceId- the reference race processorId- Throws:
NotFoundException-raceProcessorId, raceId, orreferenceIdnot found or,raceProcessorIdorreferenceIdnot related toraceIdNullArgumentException-raceProcessorId, raceId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderRaceProcessors
void orderRaceProcessors(Id[] raceProcessorIds, Id raceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of race processors for a race.- Parameters:
raceProcessorIds- theIdsfor a set ofRaceProcessorsraceId- theIdof aRace- Throws:
NotFoundException-raceIdnot found or, araceProcessorIdnot related toraceProcessorIdNullArgumentException-raceProcessorIdsorraceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-