Interface SpeedZoneEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply SpeedZoneEnablers to
SpeedZones . a SpeedZone with multiple
SpeedZoneEnablers means any positive rule evaluation across the enablers
result in an effective SpeedZone .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignSpeedZoneEnablerToSpeedZone(Id speedZoneEnablerId, Id speedZoneId) Adds an existingSpeedZoneEnablerto aSpeedZone.booleanTests if this user can alter speed zone enabler/speed zone mappings.booleanTests if this user can orderSpeedZoneEnablers.getMap()Gets theMapassociated with this session.getMapId()Gets theMapIdassociated with this session.voidmoveSpeedZoneEnablerAhead(Id speedZoneEnablerId, Id speedZoneId, Id referenceId) Reorders speed zone enablers for a speed zone by moving the specified speed zone enabler in front of a reference speed zone enabler.voidmoveSpeedZoneEnablerBehind(Id speedZoneEnablerId, Id speedZoneId, Id referenceId) Reorders speed zone enablers for a speed zone by moving the specified speed zone enabler behind a reference speed zone enabler.voidorderSpeedZoneEnablers(Id[] speedZoneEnablerIds, Id speedZoneId) Reorders a set of speed zone enablers for a speed zone.voidunassignSpeedZoneEnablerFromSpeedZone(Id speedZoneEnablerId, Id speedZoneId) Removes aSpeedZoneEnablerfrom aSpeedZone.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
-
getMapId
Id getMapId()Gets theMapIdassociated with this session.- Returns:
- the
Map Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getMap
Gets theMapassociated with this session.- Returns:
- the map
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignSpeedZoneEnablers
boolean canAssignSpeedZoneEnablers()Tests if this user can alter speed zone enabler/speed zone 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.
-
assignSpeedZoneEnablerToSpeedZone
void assignSpeedZoneEnablerToSpeedZone(Id speedZoneEnablerId, Id speedZoneId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingSpeedZoneEnablerto aSpeedZone.- Parameters:
speedZoneEnablerId- theIdof theSpeedZoneEnablerspeedZoneId- theIdof theSpeedZone- Throws:
AlreadyExistsException-speedZoneEnablerIdis already applied tospeedZoneIdNotFoundException-speedZoneEnablerIdorspeedZoneIdnot foundNullArgumentException-speedZoneEnablerIdorspeed zoneIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignSpeedZoneEnablerFromSpeedZone
void unassignSpeedZoneEnablerFromSpeedZone(Id speedZoneEnablerId, Id speedZoneId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aSpeedZoneEnablerfrom aSpeedZone.- Parameters:
speedZoneEnablerId- theIdof theSpeedZoneEnablerspeedZoneId- theIdof theSpeedZone- Throws:
NotFoundException-speedZoneEnablerIdorspeedZoneIdnot found orspeedZoneEnablerIdnot applied tospeedZoneIdNullArgumentException-speedZoneEnablerIdorspeed zoneIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceSpeedZoneEnablers
boolean canSequenceSpeedZoneEnablers()Tests if this user can orderSpeedZoneEnablers. 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:
falseifSpeedZoneEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveSpeedZoneEnablerAhead
void moveSpeedZoneEnablerAhead(Id speedZoneEnablerId, Id speedZoneId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders speed zone enablers for a speed zone by moving the specified speed zone enabler in front of a reference speed zone enabler.- Parameters:
speedZoneEnablerId- theIdof aSpeedZoneEnablerspeedZoneId- theIdof aSpeedZonereferenceId- the reference speed zone enablerId- Throws:
NotFoundException-speedZoneEnablerId, speed zoneId, orreferenceIdnot found or,speedZoneEnablerIdorreferenceIdnot related tospeedZoneIdNullArgumentException-speedZoneEnablerId, speed zoneId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveSpeedZoneEnablerBehind
void moveSpeedZoneEnablerBehind(Id speedZoneEnablerId, Id speedZoneId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders speed zone enablers for a speed zone by moving the specified speed zone enabler behind a reference speed zone enabler.- Parameters:
speedZoneEnablerId- theIdof aSpeedZoneEnablerspeedZoneId- theIdof aSpeedZonereferenceId- the reference speed zone enablerId- Throws:
NotFoundException-speedZoneEnablerId, speed zoneId, orreferenceIdnot found or,speedZoneEnablerIdorreferenceIdnot related tospeedZoneIdNullArgumentException-speedZoneEnablerId, speed zoneId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderSpeedZoneEnablers
void orderSpeedZoneEnablers(Id[] speedZoneEnablerIds, Id speedZoneId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of speed zone enablers for a speed zone.- Parameters:
speedZoneEnablerIds- theIdsfor a set ofSpeedZoneEnablersspeedZoneId- theIdof aSpeedZone- Throws:
NotFoundException-speedZoneIdnot found or, anspeedZoneEnablerIdnot related tospeedZoneIdNullArgumentException-speedZoneEnablerIdsorspeedZoneIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-