@Controller @RequestMapping(value="/abstractlayers") public class AbstractLayerController<E extends de.terrestris.shogun2.model.layer.AbstractLayer,D extends de.terrestris.shogun2.dao.AbstractLayerDao<E>,S extends AbstractLayerService<E,D>> extends Object
| Modifier | Constructor and Description |
|---|---|
|
AbstractLayerController()
Default constructor, which calls the type-constructor
|
protected |
AbstractLayerController(Class<E> type)
Constructor that sets the concrete type for this controller.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getLayerGroupsOfLayer(Integer abstractLayerId) |
Map<String,Object> |
setLayersForLayerGroup(Integer layerGroupId,
List<String> abstractLayerIds) |
void |
setService(S service)
We have to use
Qualifier to define the correct service here. |
protected S extends AbstractLayerService<E,D> service
public AbstractLayerController()
@Autowired @Qualifier(value="abstractLayerService") public void setService(S service)
Qualifier to define the correct service here.
Otherwise, spring can not decide which service has to be autowired here
as there are multiple candidates.@RequestMapping(value="/getLayerGroupsOfLayer.action",
method=GET)
@ResponseBody
public Map<String,Object> getLayerGroupsOfLayer(Integer abstractLayerId)
abstractLayerId - Copyright © 2016 terrestris GmbH & Co. KG. All rights reserved.