Package de.terrestris.shoguncore.web
Class MapController<E extends Map,D extends MapDao<E>,S extends MapService<E,D>>
- java.lang.Object
-
- de.terrestris.shoguncore.web.MapController<E,D,S>
-
@Controller @RequestMapping("/maps") public class MapController<E extends Map,D extends MapDao<E>,S extends MapService<E,D>> extends Object- Author:
- Johannes Weskamm, Kai Volland
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOULD_NOT_SET_ERROR_MSGprotected Sservice
-
Constructor Summary
Constructors Modifier Constructor Description MapController()Default constructor, which calls the type-constructorprotectedMapController(Class<E> type)Constructor that sets the concrete type for this controller.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>setLayersForMap(Integer mapModuleId, List<Integer> layerIds)Set layers for mapvoidsetService(S service)We have to useQualifierto define the correct service here.
-
-
-
Field Detail
-
COULD_NOT_SET_ERROR_MSG
public static final String COULD_NOT_SET_ERROR_MSG
- See Also:
- Constant Field Values
-
service
protected S extends MapService<E,D> service
-
-
Method Detail
-
setService
@Autowired @Qualifier("mapService") public void setService(S service)We have to useQualifierto define the correct service here. Otherwise, spring can not decide which service has to be autowired here as there are multiple candidates.
-
setLayersForMap
@RequestMapping(value="/setLayersForMap.action", method=POST) @ResponseBody public Map<String,Object> setLayersForMap(@RequestParam("mapModuleId") Integer mapModuleId, @RequestParam("layerIds") List<Integer> layerIds)Set layers for map- Parameters:
mapModuleId- The map module idlayerIds- The list of layer ids- Returns:
-
-