RESTLayer: provide workspace info in default style. Close #100.

This commit is contained in:
etj 2013-10-08 11:49:56 +02:00
parent 71b46e2745
commit a610bc3de9

View File

@ -113,6 +113,14 @@ public class RESTLayer {
return defaultStyle == null? null : defaultStyle.getChildText("name"); return defaultStyle == null? null : defaultStyle.getChildText("name");
} }
/**
* @see <a href="https://github.com/geosolutions-it/geoserver-manager/issues/100">this issue</a>
*/
public String getDefaultStyleWorkspace() {
Element defaultStyle = layerElem.getChild("defaultStyle");
return defaultStyle == null? null : defaultStyle.getChildText("workspace");
}
public String getTitle() { public String getTitle() {
Element resource = layerElem.getChild("resource"); Element resource = layerElem.getChild("resource");
return resource.getChildText("title"); return resource.getChildText("title");