properties.put("verbose", wmsInfo.isVerbose() ? "true" : "false"); properties.put("authorityURLs", wmsInfo.getAuthorityURLs() != null ? new CollectionModel(wmsInfo.getAuthorityURLs(), new ObjectToMapWrapper(AuthorityURL.class)) : "NO_AUTHORITY_URL"); properties.put("identifiers", wmsInfo.getIdentifiers() != null ? new CollectionModel(wmsInfo.getIdentifiers(), new ObjectToMapWrapper(LayerIdentifierInfo.class)) : "NO_IDENTIFIER"); properties.put("srsList", wmsInfo.getSRS().size() > 0 ? wmsInfo.getSRS() : "NO_SRSList"); properties.put("bboxForEachCRS", wmsInfo.isBBOXForEachCRS().toString());
handleLayerIdentifiers(serviceInfo.getIdentifiers());
handleLayerIdentifiers(serviceInfo.getIdentifiers());
addAuthUrl("rootAuth1", "http://geoserver/wms/auth1", serviceInfo.getAuthorityURLs()); addAuthUrl("rootAuth2", "http://geoserver/wms/auth2", serviceInfo.getAuthorityURLs()); addIdentifier("rootAuth1", "rootId1", serviceInfo.getIdentifiers()); addIdentifier("rootAuth2", "rootId2", serviceInfo.getIdentifiers()); getGeoServer().save(serviceInfo);
addAuthUrl("rootAuth1", "http://geoserver/wms/auth1", serviceInfo.getAuthorityURLs()); addAuthUrl("rootAuth2", "http://geoserver/wms/auth2", serviceInfo.getAuthorityURLs()); addIdentifier("rootAuth1", "rootId1", serviceInfo.getIdentifiers()); addIdentifier("rootAuth2", "rootId2", serviceInfo.getIdentifiers()); getGeoServer().save(serviceInfo);