Package org.geoserver.platform.resource

Examples of org.geoserver.platform.resource.Resource


    }
   
    //namespaces
    private void addNamespace( NamespaceInfo ns ) throws IOException {
        LOGGER.fine( "Persisting namespace " + ns.getPrefix() );
        Resource xml = dd.config(ns);
        ensureParent(xml);
        persist( ns, xml );
    }
View Full Code Here


        persist( ns, xml );
    }
   
    private void modifyNamespace( NamespaceInfo ns) throws IOException {
        LOGGER.fine( "Persisting namespace " + ns.getPrefix() );
        Resource xml = dd.config(ns);
        ensureParent(xml);
        persist( ns, xml );
    }
View Full Code Here

        persist( ns, xml );
    }
   
    private void removeNamespace( NamespaceInfo ns ) throws IOException {
        LOGGER.fine( "Removing namespace " + ns.getPrefix() );
        Resource directory = dd.get(ns);
        rmRes(directory);
    }
View Full Code Here

    }
   
    //datastores
    private void addDataStore( DataStoreInfo ds ) throws IOException {
        LOGGER.fine( "Persisting datastore " + ds.getName() );
        Resource xml = dd.config(ds);
        ensureParent(xml);
        persist( ds, xml );
    }
View Full Code Here

        persist( ds, xml );
    }
   
    private void renameStore( StoreInfo s, String newName ) throws IOException {
        LOGGER.fine( "Renaming store " + s.getName() + "to " + newName );
        Resource directory = dd.get(s);
        renameRes(directory, newName);
    }
View Full Code Here

        renameRes(directory, newName);
    }
   
    private void modifyDataStore( DataStoreInfo ds ) throws IOException {
        LOGGER.fine( "Persisting datastore " + ds.getName() );
        Resource xml = dd.config(ds);
        persist( ds, xml );
    }
View Full Code Here

        persist( ds, xml );
    }
   
    private void removeDataStore( DataStoreInfo ds ) throws IOException {
        LOGGER.fine( "Removing datastore " + ds.getName() );
        Resource directory = dd.get(ds);
        rmRes(directory);
    }
View Full Code Here

    }
   
    //feature types
    private void addFeatureType( FeatureTypeInfo ft ) throws IOException {
        LOGGER.fine( "Persisting feature type " + ft.getName() );
        Resource xml = dd.config(ft);
        ensureParent(xml);
        persist( ft, xml );
    }
View Full Code Here

        persist( ft, xml );
    }
   
    private void renameResource( ResourceInfo r, String newName ) throws IOException {
        LOGGER.fine( "Renaming resource " + r.getName() + " to " + newName );
        Resource directory = dd.get(r);
        renameRes(directory, newName);
    }
View Full Code Here

        renameRes(directory, newName);
    }
   
    private void modifyFeatureType( FeatureTypeInfo ft ) throws IOException {
        LOGGER.fine( "Persisting feature type " + ft.getName() );
        Resource xml = dd.config(ft);
        persist( ft, xml );
    }
View Full Code Here

TOP

Related Classes of org.geoserver.platform.resource.Resource

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.