Package org.geoserver.catalog.impl

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


        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

        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

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

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

        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

        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

        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

    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

   
    @Override
    protected void setUp() throws Exception {
        // make a nice little catalog that does always tell us stuff is there
        Catalog catalog = createNiceMock(Catalog.class);
        expect(catalog.getWorkspaceByName((String) anyObject())).andReturn(new WorkspaceInfoImpl()).anyTimes();
        expect(catalog.getLayerByName((String) anyObject())).andReturn(new LayerInfoImpl()).anyTimes();
        replay(catalog);
       
        // prepare some base rules
        props = new Properties();
View Full Code Here

                       map.put( null, ns );
                   }
                   LOGGER.info( "Loading namespace '" + ns.getPrefix() + "'" );
               }
               else {
                   WorkspaceInfoImpl ws = (WorkspaceInfoImpl) context.convertAnother( map, WorkspaceInfoImpl.class );
                   map.put( ws.getName() , ws );
                   if ( def ) {
                       map.put( null, ws );
                   }
                   LOGGER.info( "Loading workspace '" + ws.getName() + "'" );
               }
              
               reader.moveUp();
            }
           
View Full Code Here

TOP

Related Classes of org.geoserver.catalog.impl.WorkspaceInfoImpl

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.