394395396397398399400401402
} //namespaces private void addNamespace( NamespaceInfo ns ) throws IOException { LOGGER.fine( "Persisting namespace " + ns.getPrefix() ); Resource xml = dd.config(ns); ensureParent(xml); persist( ns, xml ); }
401402403404405406407408409
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 ); }
408409410411412413414415
persist( ns, xml ); } private void removeNamespace( NamespaceInfo ns ) throws IOException { LOGGER.fine( "Removing namespace " + ns.getPrefix() ); Resource directory = dd.get(ns); rmRes(directory); }
415416417418419420421422423
} //datastores private void addDataStore( DataStoreInfo ds ) throws IOException { LOGGER.fine( "Persisting datastore " + ds.getName() ); Resource xml = dd.config(ds); ensureParent(xml); persist( ds, xml ); }
422423424425426427428429
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); }
428429430431432433434435
renameRes(directory, newName); } private void modifyDataStore( DataStoreInfo ds ) throws IOException { LOGGER.fine( "Persisting datastore " + ds.getName() ); Resource xml = dd.config(ds); persist( ds, xml ); }
434435436437438439440441
persist( ds, xml ); } private void removeDataStore( DataStoreInfo ds ) throws IOException { LOGGER.fine( "Removing datastore " + ds.getName() ); Resource directory = dd.get(ds); rmRes(directory); }
441442443444445446447448449
} //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 ); }
448449450451452453454455
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); }
454455456457458459460461
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 ); }