public interface RouteMapSession extends OsidSession
This session provides methods to retrieve Route
to
Map
mappings. A Route
may appear in multiple
Map
objects. Each map may have its own authorizations
governing who is allowed to look at it.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupRouteMapLocations()
Tests if this user can perform lookups of route/map mappings.
|
IdList |
getMapIdsByRoute(Id routeId)
Gets the
Map Ids mapped to a
Route. |
MapList |
getMapsByRoute(Id routeId)
Gets the
Maps mapped to a Route. |
IdList |
getRouteIdsByMap(Id mapId)
Gets the list of
Route Ids associated with a
Map. |
IdList |
getRouteIdsByMaps(IdList mapIds)
Gets the list of
Route Ids corresponding to a list of
Maps. |
RouteList |
getRoutesByMap(Id mapId)
Gets the list of
Routes associated with a Map. |
RouteList |
getRoutesByMaps(IdList mapIds)
Gets the list of
Route corresponding to a list of
Maps. |
void |
useComparativeRouteMapView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
usePlenaryRouteMapView()
A complete view of the
Route and Map
returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
boolean canLookupRouteMapLocations()
PERMISSION_DENIED.
This is intended as a hint to
an application that may opt not to offer lookup operations to
unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeRouteMapView()
mandatory
- This method is must be implemented. void usePlenaryRouteMapView()
Route
and Map
returns is desired. Methods will return what is requested or result in
an error. This view is used when greater precision is desired at the
expense of interoperability.mandatory
- This method is must be implemented. IdList getRouteIdsByMap(Id mapId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Route Ids
associated with a
Map.
mapId
- Id
of the Map
Ids
NotFoundException
- mapId
is not foundNullArgumentException
- mapId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RouteList getRoutesByMap(Id mapId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Routes
associated with a Map.
mapId
- Id
of the Map
NotFoundException
- mapId
is not foundNullArgumentException
- mapId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getRouteIdsByMaps(IdList mapIds) throws OperationFailedException, PermissionDeniedException
Route Ids
corresponding to a list of
Maps.
mapIds
- list of map Ids
Ids
NullArgumentException
- mapIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RouteList getRoutesByMaps(IdList mapIds) throws OperationFailedException, PermissionDeniedException
Route
corresponding to a list of
Maps.
mapIds
- list of map Ids
NullArgumentException
- mapIds
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getMapIdsByRoute(Id routeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Map
Ids
mapped to a
Route.
routeId
- Id
of a Route
NotFoundException
- routeId
is not foundNullArgumentException
- routeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. MapList getMapsByRoute(Id routeId) throws NotFoundException, OperationFailedException, PermissionDeniedException
Maps
mapped to a Route.
routeId
- Id
of a Route
NotFoundException
- routeId
is not foundNullArgumentException
- routeId
is
null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.