private List<LayerClass> fillMapLayersForInspireThemes(List<LayerClass> layerClasses) { for (LayerClass lc : layerClasses) { List<Layer> mapLayers = mapLayerService.findWithInspireTheme(lc.getId()); lc.addMapLayers(mapLayers); } return layerClasses; }
public LayerClass findOrganizationalStructureByClassId(int classId) { LayerClass layerClass = this.find(classId); // fillMapLayersForClasses(allLayers); List<Layer> mapLayers = mapLayerService.findWithLayerClass(classId); layerClass.addMapLayers(mapLayers); List<LayerClass> subLayers = findWithParent(classId); // findWithParent(classId); fillMapLayersForClasses(subLayers); layerClass.addChildren(subLayers); return layerClass; }