Class MapController<E extends Map,​D extends MapDao<E>,​S extends MapService<E,​D>>


  • @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
    • Constructor Detail

      • MapController

        public MapController()
        Default constructor, which calls the type-constructor
      • MapController

        protected MapController​(Class<E> type)
        Constructor that sets the concrete type for this controller. Subclasses MUST call this constructor.
    • Method Detail

      • setService

        @Autowired
        @Qualifier("mapService")
        public void setService​(S service)
        We have to use Qualifier to 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 id
        layerIds - The list of layer ids
        Returns: