Interface RaceConstrainerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply RaceConstrainers to
Races . A Race with multiple RaceConstrainers
means any positive rule evaluation across the constrainers result in an
accessible Race .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRaceConstrainerToRace(Id raceConstrainerId, Id raceId) Adds an existingRaceConstrainerto aRace.booleanTests if this user can alter race constrainer/race mappings.booleanTests if this user can orderRaceConstrainers.getPolls()Gets thePollsassociated with this session.Gets thePollsIdassociated with this session.voidmoveRaceConstrainerAhead(Id raceConstrainerId, Id raceId, Id referenceId) Reorders race constrainers for a race by moving the specified race constrainer in front of a reference race constrainer.voidmoveRaceConstrainerBehind(Id raceConstrainerId, Id raceId, Id referenceId) Reorders race constrainers for a race by moving the specified race constrainer behind a reference race constrainer.voidorderRaceConstrainers(Id[] raceConstrainerIds, Id raceId) Reorders a set of race constrainers for a race.voidunassignRaceConstrainerFromRace(Id raceConstrainerId, Id raceId) Removes aRaceConstrainerfrom 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.
-
canAssignRaceConstrainers
boolean canAssignRaceConstrainers()Tests if this user can alter race constrainer/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.
-
assignRaceConstrainerToRace
void assignRaceConstrainerToRace(Id raceConstrainerId, Id raceId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRaceConstrainerto aRace.- Parameters:
raceConstrainerId- theIdof theRaceConstrainerraceId- theIdof theRace- Throws:
AlreadyExistsException-raceConstrainerIdis already applied toraceIdNotFoundException-raceConstrainerIdorraceIdnot foundNullArgumentException-raceConstrainerIdorraceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRaceConstrainerFromRace
void unassignRaceConstrainerFromRace(Id raceConstrainerId, Id raceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRaceConstrainerfrom aRace.- Parameters:
raceConstrainerId- theIdof theRaceConstrainerraceId- theIdof theRace- Throws:
NotFoundException-raceConstrainerIdorraceIdnot found orraceConstrainerIdnot applied toraceIdNullArgumentException-raceConstrainerIdorraceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceRaceConstrainers
boolean canSequenceRaceConstrainers()Tests if this user can orderRaceConstrainers. 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:
falseifRaceConstrainerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveRaceConstrainerAhead
void moveRaceConstrainerAhead(Id raceConstrainerId, Id raceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race constrainers for a race by moving the specified race constrainer in front of a reference race constrainer.- Parameters:
raceConstrainerId- theIdof aRaceConstrainerraceId- theIdof aRacereferenceId- the reference race constrainerId- Throws:
NotFoundException-raceConstrainerId, raceId, orreferenceIdnot found or,raceConstrainerIdorreferenceIdnot related toraceIdNullArgumentException-raceConstrainerId, raceId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveRaceConstrainerBehind
void moveRaceConstrainerBehind(Id raceConstrainerId, Id raceId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race constrainers for a race by moving the specified race constrainer behind a reference race constrainer.- Parameters:
raceConstrainerId- theIdof aRaceConstrainerraceId- theIdof aRacereferenceId- the reference race constrainerId- Throws:
NotFoundException-raceConstrainerId, raceId, orreferenceIdnot found or,raceConstrainerIdorreferenceIdnot related toraceIdNullArgumentException-raceConstrainerId, raceId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderRaceConstrainers
void orderRaceConstrainers(Id[] raceConstrainerIds, Id raceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of race constrainers for a race.- Parameters:
raceConstrainerIds- theIdsfor a set ofRaceConstrainersraceId- theIdof aRace- Throws:
NotFoundException-raceIdnot found or, araceConstrainerIdnot related toraceIdNullArgumentException-raceConstrainerIdsorraceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-