public WorkspaceInfo getWorkspace() { return delegate.getWorkspace(); }
public WMTSStoreInfo clone(final WMTSStoreInfo source, boolean allowEnvParametrization) { WMTSStoreInfo target; try { target = (WMTSStoreInfo) SerializationUtils.clone(source); if (target instanceof StoreInfoImpl && target.getCatalog() == null) { ((StoreInfoImpl) target).setCatalog(catalog); } } catch (Exception e) { target = catalog.getFactory().createWebMapTileServer(); target.setDescription(source.getDescription()); target.setEnabled(source.isEnabled()); target.setName(source.getName()); target.setType(source.getType()); target.setWorkspace(source.getWorkspace()); } setConnectionParameters(source, target); if (allowEnvParametrization) { // Resolve GeoServer Environment placeholders final GeoServerEnvironment gsEnvironment = GeoServerExtensions.bean(GeoServerEnvironment.class); if (gsEnvironment != null && GeoServerEnvironment.ALLOW_ENV_PARAMETRIZATION) { target.setCapabilitiesURL( (String) gsEnvironment.resolveValue(source.getCapabilitiesURL())); target.setUsername((String) gsEnvironment.resolveValue(source.getUsername())); target.setPassword((String) gsEnvironment.resolveValue(source.getPassword())); } } return target; }
if (info.getWorkspace() != null && !original.getWorkspace().equals(info.getWorkspace())) { throw new RestException( "Attempting to move " + storeName + " from " + original.getWorkspace().getName() + " to " + info.getWorkspace().getName() + " via PUT", HttpStatus.FORBIDDEN);
UriComponentsBuilder builder) { if (store.getWorkspace() != null) { WorkspaceInfo ws = store.getWorkspace(); if (!workspaceName.equals(ws.getName())) { throw new RestException(
@Override protected void postEncodeReference( Object obj, String ref, String prefix, HierarchicalStreamWriter writer, MarshallingContext context) { if (obj instanceof NamespaceInfo) { NamespaceInfo ns = (NamespaceInfo) obj; converter.encodeLink( "/namespaces/" + converter.encode(ns.getPrefix()), writer); } if (obj instanceof WMTSStoreInfo) { WMTSStoreInfo store = (WMTSStoreInfo) obj; converter.encodeLink( "/workspaces/" + converter.encode(store.getWorkspace().getName()) + "/wmtsstores/" + converter.encode(store.getName()), writer); } } });
this, store.getName(), store.getWorkspace().getName()) .getString());