Interface RaceConstrainerEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply RaceConstrainerEnablers
to RaceConstrainers . a RaceConstrainer with multiple
RaceConstrainerEnablers means any positive rule evaluation across
the enablers result in an effective RaceConstrainer .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignRaceConstrainerEnablerToRaceConstrainer(Id raceConstrainerEnablerId, Id raceConstrainerId) Adds an existingRaceConstrainerEnablerto aRaceConstrainer.booleanTests if this user can alter race constrainer enabler/race constrainer mappings.booleanTests if this user can orderRaceConstrainerEnablers.getPolls()Gets thePollsassociated with this session.Gets thePollsIdassociated with this session.voidmoveRaceConstrainerEnablerAhead(Id raceConstrainerEnablerId, Id raceConstrainerId, Id referenceId) Reorders race constrainer enablers for a race constrainer by moving the specified race constrainer enabler in front of a reference race constrainer enabler.voidmoveRaceConstrainerEnablerBehind(Id raceConstrainerEnablerId, Id raceConstrainerId, Id referenceId) Reorders race constrainer enablers for a race constrainer by moving the specified race constrainer enabler behind a reference race constrainer enabler.voidorderRaceConstrainerEnablers(Id[] raceConstrainerEnablerIds, Id raceConstrainerId) Reorders a set of race constrainer enablers for a race constrainer.voidunassignRaceConstrainerEnablerFromRaceConstrainer(Id raceConstrainerEnablerId, Id raceConstrainerId) Removes aRaceConstrainerEnablerfrom aRaceConstrainer.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.
-
canAssignRaceConstrainerEnablers
boolean canAssignRaceConstrainerEnablers()Tests if this user can alter race constrainer enabler/race constrainer 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.
-
assignRaceConstrainerEnablerToRaceConstrainer
void assignRaceConstrainerEnablerToRaceConstrainer(Id raceConstrainerEnablerId, Id raceConstrainerId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingRaceConstrainerEnablerto aRaceConstrainer.- Parameters:
raceConstrainerEnablerId- theIdof theRaceConstrainerEnablerraceConstrainerId- theIdof theRaceConstrainer- Throws:
AlreadyExistsException-raceConstrainerEnablerIdis already applied toraceConstrainerIdNotFoundException-raceConstrainerEnablerIdorraceConstrainerIdnot foundNullArgumentException-raceConstrainerEnablerIdorraceConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignRaceConstrainerEnablerFromRaceConstrainer
void unassignRaceConstrainerEnablerFromRaceConstrainer(Id raceConstrainerEnablerId, Id raceConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aRaceConstrainerEnablerfrom aRaceConstrainer.- Parameters:
raceConstrainerEnablerId- theIdof theRaceConstrainerEnablerraceConstrainerId- theIdof theRaceConstrainer- Throws:
NotFoundException-raceConstrainerEnablerIdorraceConstrainerIdnot found orraceConstrainerEnablerIdnot applied toraceConstrainerIdNullArgumentException-raceConstrainerEnablerIdorraceConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceRaceConstrainerEnablers
boolean canSequenceRaceConstrainerEnablers()Tests if this user can orderRaceConstrainerEnablers. 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:
falseifRaceConstrainerEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveRaceConstrainerEnablerAhead
void moveRaceConstrainerEnablerAhead(Id raceConstrainerEnablerId, Id raceConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race constrainer enablers for a race constrainer by moving the specified race constrainer enabler in front of a reference race constrainer enabler.- Parameters:
raceConstrainerEnablerId- theIdof aRaceConstrainerEnablerraceConstrainerId- theIdof aRaceConstrainerreferenceId- the reference race constrainer enablerId- Throws:
NotFoundException-raceConstrainerEnablerId, raceConstrainerId, orreferenceIdnot found or,raceConstrainerEnablerIdorreferenceIdnot related toraceConstrainerIdNullArgumentException-raceConstrainerEnablerId, raceConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveRaceConstrainerEnablerBehind
void moveRaceConstrainerEnablerBehind(Id raceConstrainerEnablerId, Id raceConstrainerId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders race constrainer enablers for a race constrainer by moving the specified race constrainer enabler behind a reference race constrainer enabler.- Parameters:
raceConstrainerEnablerId- theIdof aRaceConstrainerEnablerraceConstrainerId- theIdof aRaceConstrainerreferenceId- the reference race constrainer enablerId- Throws:
NotFoundException-raceConstrainerEnablerId, raceConstrainerId, orreferenceIdnot found or,raceConstrainerEnablerIdorreferenceIdnot related toraceConstrainerIdNullArgumentException-raceConstrainerEnablerId, raceConstrainerId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderRaceConstrainerEnablers
void orderRaceConstrainerEnablers(Id[] raceConstrainerEnablerIds, Id raceConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of race constrainer enablers for a race constrainer.- Parameters:
raceConstrainerEnablerIds- theIdsfor a set ofRaceConstrainerEnablersraceConstrainerId- theIdof aRaceConstrainer- Throws:
NotFoundException-raceConstrainerIdnot found or, araceConstrainerEnablerIdnot related toraceConstrainerIdNullArgumentException-raceConstrainerEnablerIdsorraceConstrainerIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-