Package org.geoserver.catalog

Examples of org.geoserver.catalog.WorkspaceInfo


        clearCatalog();
        removeExistingNS();

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testDataStoreWorkspace");

        assertNull(ws.getId());
        catalog.add(ws);
        assertNotNull(ws.getId());

        endTransaction();
        startNewTransaction();

        // create a new store
View Full Code Here


        endTransaction();
        // ----------------------------------------------------------------------
        startNewTransaction();

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testCoverageStoreWorkspace");
        catalog.add(ws);

        endTransaction();
        // ----------------------------------------------------------------------
        startNewTransaction();
View Full Code Here

        endTransaction();
        startNewTransaction();

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testNamespaceWorkspace");
        catalog.add(ws);

        endTransaction();
        startNewTransaction();
View Full Code Here

        namespace.setPrefix(getName());
        namespace.setURI("http://" + getName() + ".openplans.org");
        catalog.add(namespace);

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testFeatureTypeWorkspace");
        catalog.add(ws);

        StyleInfo style = catalog.getFactory().createStyle();
        style.setName("style_testFeatureType");
        style.setFilename("style_testFeatureType");
View Full Code Here

        style.setName("style_testCoverage");
        style.setFilename("style_testCoverage");
        catalog.add(style);

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testCoverageWorkspace");
        catalog.add(ws);

        endTransaction();
        startNewTransaction();
View Full Code Here

        // ensure no stores
        clearCatalog();
        removeExistingNS();

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testLayerWorkspace");
        catalog.add(ws);
        NamespaceInfo ns = catalog.getFactory().createNamespace();
        ns.setPrefix("testLayerWorkspace");
        ns.setURI("http://testLayerWorkspace.org");
        catalog.add(ns);
View Full Code Here

        // ensure no stores
        clearCatalog();
        removeExistingNS();

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testLayerWorkspace");
        catalog.add(ws);
        NamespaceInfo ns = catalog.getFactory().createNamespace();
        ns.setPrefix("testLayerWorkspace");
        ns.setURI("http://testLayerWorkspace.org");
        catalog.add(ns);
View Full Code Here

        // ensure no stores
        clearCatalog();
        removeExistingNS();

        // store needs a workspace...
        WorkspaceInfo ws = catalog.getFactory().createWorkspace();
        ws.setName("testLayerWorkspace");
        catalog.add(ws);
        NamespaceInfo ns = catalog.getFactory().createNamespace();
        ns.setPrefix("testLayerWorkspace");
        ns.setURI("http://testLayerWorkspace.org");
        catalog.add(ns);
View Full Code Here

                try {
                    // build the datastore namespace URI
                    String ns = buildDatastoreNamespace();
                   
                    // build the workspace
                    WorkspaceInfo ws = getCatalog().getWorkspaceByName(project);
                    boolean workspaceNew = false;
                    if (ws == null) {
                        workspaceNew = true;
                        ws = getCatalog().getFactory().createWorkspace();
                        ws.setName(project);
                        NamespaceInfo nsi = getCatalog().getFactory().createNamespace();
                        nsi.setPrefix(project);
                        nsi.setURI(ns);
                        getCatalog().add(ws);
                        getCatalog().add(nsi);
View Full Code Here

        @Override
        protected void onValidate(IValidatable validatable) {
            String project = (String) validatable.getValue();
           
            // new workspace? if so, good
            WorkspaceInfo ws = getCatalog().getWorkspaceByName(project);
            if(ws == null)
                return;
           
            // new store too?
            StoreInfo store = getCatalog().getStoreByName(ws, project, StoreInfo.class);
View Full Code Here

TOP

Related Classes of org.geoserver.catalog.WorkspaceInfo

Copyright © 2018 www.massapicom. 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.