RESTLayer: provide workspace info in default style. Close #100.
This commit is contained in:
parent
71b46e2745
commit
a610bc3de9
@ -113,6 +113,14 @@ public class RESTLayer {
|
||||
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() {
|
||||
Element resource = layerElem.getChild("resource");
|
||||
return resource.getChildText("title");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user