Toggle navigation
Home
org.geoserver.catalog.rest.AvailableResource<org.geoserver.catalog.WMSLayerInfo> to java.lang.String
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'geoserver'}
Hierarchy/Composition: Composition
Primitive Info: -
NameSpace: Internal -> Jdk
Mapping:
Add or Remove Method invocation
stores.stream().flatMap(store -> { WebMapServer ds; try { ds=store.getWebMapServer(null); } catch ( IOException e) { throw new RestException("Could not load wms store: " + storeName,HttpStatus.INTERNAL_SERVER_ERROR,e); } final List<Layer> layerList=ds.getCapabilities().getLayerList(); return layerList.stream().map(Layer::getName).filter(Objects::nonNull).filter(name -> !name.isEmpty()).filter(name -> Objects.isNull(catalog.getResourceByStore(store,name,WMSLayerInfo.class))).map(AvailableResource<WMSLayerInfo>::new); } )
to
stores.stream().flatMap(store -> { WebMapServer ds; try { ds=store.getWebMapServer(null); } catch ( IOException e) { throw new RestException("Could not load wms store: " + storeName,HttpStatus.INTERNAL_SERVER_ERROR,e); } final List<Layer> layerList=ds.getCapabilities().getLayerList(); return layerList.stream().map(Layer::getName).filter(Objects::nonNull).filter(name -> !name.isEmpty()).filter(name -> !layerConfigured(store,name)); } )