use of eu.esdihumboldt.hale.io.geoserver.rest.NamespaceManager in project hale by halestudio.
the class AppSchemaMappingUploader method publishNamespaces.
private void publishNamespaces() {
NamespaceManager nsMgr = new NamespaceManager(geoserverURL);
nsMgr.setCredentials(username, password);
// check whether main namespace/workspace exists; if not, create it
Namespace mainNs = generator.getMainNamespace();
createNamespaceIfRequired(nsMgr, mainNs);
// check whether secondary namespaces/workspaces exist; if not, create
// them
List<Namespace> secondaryNamespaces = generator.getSecondaryNamespaces();
for (Namespace ns : secondaryNamespaces) {
createNamespaceIfRequired(nsMgr, ns);
}
}
Aggregations