public interface SpeedZoneEnablerRuleApplicationSession extends 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.
Modifier and Type | Method and Description |
---|---|
void |
assignSpeedZoneEnablerToSpeedZone(Id speedZoneEnablerId,
Id speedZoneId)
Adds an existing
SpeedZoneEnabler to a
SpeedZone. |
boolean |
canAssignSpeedZoneEnablers()
Tests if this user can alter speed zone enabler/speed zone mappings.
|
boolean |
canSequenceSpeedZoneEnablers()
Tests if this user can order
SpeedZoneEnablers. |
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
void |
moveSpeedZoneEnablerAhead(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.
|
void |
moveSpeedZoneEnablerBehind(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.
|
void |
orderSpeedZoneEnablers(Id[] speedZoneEnablerIds,
Id speedZoneId)
Reorders a set of speed zone enablers for a speed zone.
|
void |
unassignSpeedZoneEnablerFromSpeedZone(Id speedZoneEnablerId,
Id speedZoneId)
Removes a
SpeedZoneEnabler from a SpeedZone. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getMapId()
Map
Id
associated with this
session. Map Id
associated with this sessionmandatory
- This method must be implemented. Map getMap() throws OperationFailedException, PermissionDeniedException
Map
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canAssignSpeedZoneEnablers()
PERMISSION_DENIED.
This is intended as
a hint to an application that may opt not to offer lookup operations
to unauthorized users. false
if mapping is not authorized, true
otherwisemandatory
- This method must be implemented. void assignSpeedZoneEnablerToSpeedZone(Id speedZoneEnablerId, Id speedZoneId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException
SpeedZoneEnabler
to a
SpeedZone.
speedZoneEnablerId
- the Id
of the
SpeedZoneEnabler
speedZoneId
- the Id
of the SpeedZone
AlreadyExistsException
- speedZoneEnablerId
is already applied to speedZoneId
NotFoundException
- speedZoneEnablerId
or speedZoneId
not foundNullArgumentException
- speedZoneEnablerId
or speed zoneId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void unassignSpeedZoneEnablerFromSpeedZone(Id speedZoneEnablerId, Id speedZoneId) throws NotFoundException, OperationFailedException, PermissionDeniedException
SpeedZoneEnabler
from a SpeedZone.
speedZoneEnablerId
- the Id
of the
SpeedZoneEnabler
speedZoneId
- the Id
of the SpeedZone
NotFoundException
- speedZoneEnablerId
or speedZoneId
not found or
speedZoneEnablerId
not applied to speedZoneId
NullArgumentException
- speedZoneEnablerId
or speed zoneId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canSequenceSpeedZoneEnablers()
SpeedZoneEnablers.
A
return of true does not guarantee successful authorization. A return
of false indicates that it is known sequencing operations will result
in a PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer sequencing operations to an
unauthorized user. false
if SpeedZoneEnabler
ordering is not authorized, true
otherwisemandatory
- This method must be implemented. void moveSpeedZoneEnablerAhead(Id speedZoneEnablerId, Id speedZoneId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
speedZoneEnablerId
- the Id
of a
SpeedZoneEnabler
speedZoneId
- the Id
of a SpeedZone
referenceId
- the reference speed zone enabler Id
NotFoundException
- speedZoneEnablerId, speed
zoneId,
or referenceId
not found or,
speedZoneEnablerId
or referenceId
not related to speedZoneId
NullArgumentException
- speedZoneEnablerId,
speed zoneId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void moveSpeedZoneEnablerBehind(Id speedZoneEnablerId, Id speedZoneId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException
speedZoneEnablerId
- the Id
of a
SpeedZoneEnabler
speedZoneId
- the Id
of a SpeedZone
referenceId
- the reference speed zone enabler Id
NotFoundException
- speedZoneEnablerId, speed
zoneId,
or referenceId
not found or,
speedZoneEnablerId
or referenceId
not related to speedZoneId
NullArgumentException
- speedZoneEnablerId,
speed zoneId,
or referenceId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void orderSpeedZoneEnablers(Id[] speedZoneEnablerIds, Id speedZoneId) throws NotFoundException, OperationFailedException, PermissionDeniedException
speedZoneEnablerIds
- the Ids
for a set of
SpeedZoneEnablers
speedZoneId
- the Id
of a SpeedZone
NotFoundException
- speedZoneId
not
found or, an speedZoneEnablerId
not related to
speedZoneId
NullArgumentException
- speedZoneEnablerIds
or speedZoneId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.