Interface SpeedZoneEnablerMapAssignmentSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to re-assign SpeedZoneEnabler to
Map mappings. a SpeedZoneEnabler may appear in multiple
Map objects and removing the last reference to a
SpeedZoneEnabler is the equivalent of deleting it. Each Map may
have its own authorizations governing who is allowed to operate on it.
Adding a reference of a SpeedZoneEnabler to another
Map is not a copy operation (eg: does not change its Id ).
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignSpeedZoneEnablerToMap(Id speedZoneEnablerId, Id mapId) Adds an existingSpeedZoneEnablerto anMap.booleanTests if this user can alter speed zone enabler/map mappings.booleanTests if this user can alter speed zone enabler/map mappings.getAssignableMapIds(Id mapId) Gets a list of map including and under the given map node in which any speed zone enabler can be assigned.getAssignableMapIdsForSpeedZoneEnabler(Id mapId, Id speedZoneEnablerId) Gets a list of map including and under the given map node in which a specific speed zone enabler can be assigned.voidreassignSpeedZoneEnablerToMap(Id speedZoneEnablerId, Id fromMapId, Id toMapId) Moves aSpeedZoneEnablerfrom oneMapto another.voidunassignSpeedZoneEnablerFromMap(Id speedZoneEnablerId, Id mapId) Removes aSpeedZoneEnablerfrom anMap.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
-
canAssignSpeedZoneEnablers
boolean canAssignSpeedZoneEnablers()Tests if this user can alter speed zone enabler/map 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.
-
canAssignSpeedZoneEnablersToMap
Tests if this user can alter speed zone enabler/map 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.- Parameters:
mapId- theIdof theMap- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-mapIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableMapIds
Gets a list of map including and under the given map node in which any speed zone enabler can be assigned.- Parameters:
mapId- theIdof theMap- Returns:
- list of assignable map
Ids - Throws:
NullArgumentException-mapIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAssignableMapIdsForSpeedZoneEnabler
IdList getAssignableMapIdsForSpeedZoneEnabler(Id mapId, Id speedZoneEnablerId) throws OperationFailedException Gets a list of map including and under the given map node in which a specific speed zone enabler can be assigned.- Parameters:
mapId- theIdof theMapspeedZoneEnablerId- theIdof theSpeedZoneEnabler- Returns:
- list of assignable map
Ids - Throws:
NullArgumentException-mapIdorspeedZoneEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignSpeedZoneEnablerToMap
void assignSpeedZoneEnablerToMap(Id speedZoneEnablerId, Id mapId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingSpeedZoneEnablerto anMap.- Parameters:
speedZoneEnablerId- theIdof theSpeedZoneEnablermapId- theIdof theMap- Throws:
AlreadyExistsException-speedZoneEnablerIdis already assigned tomapIdNotFoundException-speedZoneEnablerIdormapIdnot foundNullArgumentException-speedZoneEnablerIdormapIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignSpeedZoneEnablerFromMap
void unassignSpeedZoneEnablerFromMap(Id speedZoneEnablerId, Id mapId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aSpeedZoneEnablerfrom anMap.- Parameters:
speedZoneEnablerId- theIdof theSpeedZoneEnablermapId- theIdof theMap- Throws:
NotFoundException-speedZoneEnablerIdormapIdnot found orspeedZoneEnablerIdnot assigned tomapIdNullArgumentException-speedZoneEnablerIdormapIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
reassignSpeedZoneEnablerToMap
void reassignSpeedZoneEnablerToMap(Id speedZoneEnablerId, Id fromMapId, Id toMapId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Moves aSpeedZoneEnablerfrom oneMapto another. Mappings to otherMapsare unaffected.- Parameters:
speedZoneEnablerId- theIdof theSpeedZoneEnablerfromMapId- theIdof the currentMaptoMapId- theIdof the destinationMap- Throws:
AlreadyExistsException-speedZoneEnablerIdalready assigned totoMapIdNotFoundException-speedZoneEnablerId, fromMapId, ortoMapIdnot found orspeedZoneEnablerIdnot mapped tofromMapIdNullArgumentException-speedZoneEnablerId, fromMapId, ortoMapIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-