Merge branch 'master' of github.com:e-geos/geoserver-manager

This commit is contained in:
Federico C. Guizzardi 2016-04-18 08:37:52 +02:00
commit bd0e10e61a

View File

@ -61,9 +61,11 @@ public class GSLayerGroupEncoder extends PropertyXMLEncoder {
}
public void addLayer(String layer, String styleName) {
initPublishables("layers");
initPublishables("publishables");
Element e = elem("published", elem("name", layer));
e.setAttribute("type", "layer");
publishablesElem.addContent(elem("layer", elem("name", layer)));
publishablesElem.addContent(e);
Element style = new Element("style");
stylesElem.addContent(style);
@ -72,6 +74,17 @@ public class GSLayerGroupEncoder extends PropertyXMLEncoder {
}
}
public void addLayerGroup(String layer) {
initPublishables("publishables");
Element e = elem("published", elem("name", layer));
e.setAttribute("type", "layerGroup");
publishablesElem.addContent(e);
Element style = new Element("style");
stylesElem.addContent(style);
}
public void setBounds(String crs, double minx, double maxx, double miny, double maxy) {
boundsElem = elem("bounds",
elem("minx", Double.toString(minx)),