Examples of WorkspaceInfoImpl


Examples of com.google.collide.dto.client.DtoClientImpls.WorkspaceInfoImpl

public class WorkspaceInfoMutator {
  /**
   * Updates a workspace's {@link RunTarget}.
   */
  public void updateRunTarget(WorkspaceInfo workspace, RunTarget target) {
    WorkspaceInfoImpl workspaceImpl = (WorkspaceInfoImpl) workspace;
    workspaceImpl.setRunTarget(target);
  }
View Full Code Here

Examples of com.google.collide.dto.server.DtoServerImpls.WorkspaceInfoImpl

      }
    }
  }

  private WorkspaceInfo makeWorkspace(String id, WorkspaceInfo parent) {
    WorkspaceInfoImpl ws = MockWorkspaceInfoImpl.make();
    ws.setId(id);
    if (parent != null) {
      ws.setParentId(parent.getId());
    }
    return ws;
  }
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

        ns = resourceCatalog.getFactory().createNamespace();
        ns.setPrefix("it.geosolutions");
        ns.setURI("http://www.geo-solutions.it");
        resourceCatalog.add(ns);

        WorkspaceInfoImpl ws = (WorkspaceInfoImpl) resourceCatalog.getFactory()
                .createWorkspace();
        ws.setName("topp");
        resourceCatalog.add(ws);
        resourceCatalog.setDefaultWorkspace(ws);

        ws = (WorkspaceInfoImpl) resourceCatalog.getFactory().createWorkspace();
        ws.setName("it.geosolutions");
        resourceCatalog.add(ws);
    }
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

        resourceCatalog.setDefaultNamespace(ns);
        return ns;
    }

    public WorkspaceInfo createDefaultWorkspace() {
        WorkspaceInfoImpl ws = (WorkspaceInfoImpl) resourceCatalog.getFactory()
                .createWorkspace();
        ws.setDefault(Boolean.TRUE);
        ws.setName("nurc");
        resourceCatalog.add(ws);
        resourceCatalog.setDefaultWorkspace(ws);
        return ws;
    }
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

        namespaceInfo.setId("testNs");
        namespaceInfo.setPrefix("geos");
        namespaceInfo.setURI(TEST_NAMESPACE);
        catalog.add(namespaceInfo);

        workspaceInfo = new WorkspaceInfoImpl();
        catalog.setDefaultWorkspace(workspaceInfo);

        defaultStyle = new StyleInfoImpl(catalog) {
            /**
             * Override so it does not try to load a file from disk
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

    public LegendInfo createLegend() {
        return new LegendInfoImpl();
    }

    public WorkspaceInfoImpl createWorkspace() {
        return new WorkspaceInfoImpl();
    }
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

        DataStoreInfo store = catalog.getFactory().createDataStore();
        store.setName("foo" + System.currentTimeMillis()); // we need a unique name
        store.setDescription("testAddStore() "); // just for data debugging

        WorkspaceInfoImpl ws = catalog.getFactory().createWorkspace();
        ws.setName("testAddStore" + System.currentTimeMillis()); // we need a unique name
        catalog.add(ws);

        store.setWorkspace(ws);
        catalog.add(store);
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

        logger.error("------------------> running testModifyStore");

        DataStoreInfo store = catalog.getFactory().createDataStore();
        store.setName("bar");

        WorkspaceInfoImpl ws = catalog.getFactory().createWorkspace();
        ws.setName("testModifyStore" + System.currentTimeMillis()); // we need a unique name
        catalog.add(ws);

        store.setWorkspace(ws);
        catalog.add(store);
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

        geoServerImpl.setCatalog(catalog);
        NamespaceInfoImpl ns = new NamespaceInfoImpl();
        ns.setPrefix(TEST_NS_PREFIX);
        ns.setURI(TEST_NAMESPACE);

        WorkspaceInfoImpl workspace = new WorkspaceInfoImpl();
        workspace.setId("fakeWs");
        workspace.setName("fakeWs");

        DataStoreInfoImpl dataStoreInfo = new DataStoreInfoImpl(catalog);
        dataStoreInfo.setName("fakeDs");
        dataStoreInfo.setId("fakeDs");
        dataStoreInfo.setWorkspace(workspace);
View Full Code Here

Examples of org.geoserver.catalog.impl.WorkspaceInfoImpl

    geoServerImpl.setCatalog(catalog);
    NamespaceInfoImpl ns = new NamespaceInfoImpl();
    ns.setPrefix("topp");
    ns.setURI("http//www.geoserver.org");

    WorkspaceInfoImpl workspace = new WorkspaceInfoImpl();
    workspace.setId("fakeWs");
    workspace.setName("fakeWs");

    DataStoreInfoImpl dataStoreInfo = new DataStoreInfoImpl(catalog);
    dataStoreInfo.setName("fakeDs");
    dataStoreInfo.setId("fakeDs");
    dataStoreInfo.setWorkspace(workspace);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.