Examples of CascadeDeleteVisitor


Examples of org.geoserver.catalog.CascadeDeleteVisitor

    }
   
    public void testDeleteAllOneByOne() throws Exception {
        for(WorkspaceInfo ws : getCatalog().getWorkspaces()) {
            // empty the workspace otherwise we can't remove it
            CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(getCatalog());
            for(StoreInfo store : getCatalog().getStoresByWorkspace(ws, StoreInfo.class)) {
                store.accept(visitor);
            }

            // actually go and remove the store
View Full Code Here

Examples of org.geoserver.catalog.CascadeDeleteVisitor

            }
            catalog.remove( ds );
        }
        else {
            //recursive delete
            new CascadeDeleteVisitor(catalog).visit(ds);
        }
        clear(ds);
       
        LOGGER.info( "DELETE data store " + workspace + "," + datastore );
    }
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.