test_class.declarator: exporter
test_class.original_string: BundleExporter exporter;
test_class.type: BundleExporter
test_class.var_name: exporter
test_class.file: geoserver/webapp/api-composer/src/test/java/com/boundlessgeo/geoserver/bundle/BundleExporterTest.java
test_class.identifier: BundleExporterTest
test_class.superclass: extends BundleTestSupport
test_case.body: @Test
      public void testConvertGlobalStyles() throws Exception {
          new CatalogCreator(cat).workspace("foo")
              .property("bar")
                  .featureType("stuff", "geom:Point:srid=4326,name:String,id:Integer", stuff()).layer(true);
  
          exporter = new BundleExporter(cat, new ExportOpts(cat.getWorkspaceByName("foo")).name("blah"));
          Path root = exporter.run();
  
          assertPathExists(root, "styles/foo_stuff.xml");
          assertPathExists(root, "styles/foo_stuff.sld");
      }
test_case.class_method_signature: BundleExporterTest.testConvertGlobalStyles()
test_case.full_signature: @Test public void testConvertGlobalStyles()
test_case.identifier: testConvertGlobalStyles
test_case.invocations: layer featureType property workspace stuff name getWorkspaceByName run assertPathExists assertPathExists
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testConvertGlobalStyles()
focal_class.declarator: LOG = Logging.getLogger(BundleExporter.class)
focal_class.modifier: static
focal_class.original_string: static Logger LOG = Logging.getLogger(BundleExporter.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: catalog
focal_class.original_string: Catalog catalog;
focal_class.type: Catalog
focal_class.var_name: catalog
focal_class.declarator: temp
focal_class.original_string: Path temp, work;
focal_class.type: Path
focal_class.var_name: temp
focal_class.declarator: sourceDataDir
focal_class.original_string: GeoServerDataDirectory sourceDataDir;
focal_class.type: GeoServerDataDirectory
focal_class.var_name: sourceDataDir
focal_class.declarator: exportDataDir
focal_class.original_string: GeoServerDataDirectory exportDataDir;
focal_class.type: GeoServerDataDirectory
focal_class.var_name: exportDataDir
focal_class.declarator: xsp
focal_class.original_string: XStreamPersister xsp;
focal_class.type: XStreamPersister
focal_class.var_name: xsp
focal_class.declarator: options
focal_class.original_string: ExportOpts options;
focal_class.type: ExportOpts
focal_class.var_name: options
focal_class.declarator: workspace
focal_class.original_string: WorkspaceInfo workspace;
focal_class.type: WorkspaceInfo
focal_class.var_name: workspace
focal_class.declarator: SRID = Pattern.compile(".*:(\\d+)")
focal_class.modifier: static
focal_class.original_string: static Pattern SRID = Pattern.compile(".*:(\\d+)");
focal_class.type: Pattern
focal_class.var_name: SRID
focal_class.file: geoserver/webapp/api-composer/src/main/java/com/boundlessgeo/geoserver/bundle/BundleExporter.java
focal_class.identifier: BundleExporter
focal_class.class_method_signature: BundleExporter.BundleExporter(Catalog catalog, ExportOpts options)
focal_class.full_signature: public  BundleExporter(Catalog catalog, ExportOpts options)
focal_class.identifier: BundleExporter
focal_class.modifiers: public
focal_class.parameters: (Catalog catalog, ExportOpts options)
focal_class.signature:  BundleExporter(Catalog catalog, ExportOpts options)
focal_class.class_method_signature: BundleExporter.root()
focal_class.full_signature: public Path root()
focal_class.identifier: root
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path root()
focal_class.class_method_signature: BundleExporter.work()
focal_class.full_signature: public Path work()
focal_class.identifier: work
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path work()
focal_class.class_method_signature: BundleExporter.run()
focal_class.full_signature: public Path run()
focal_class.identifier: run
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path run()
focal_class.class_method_signature: BundleExporter.zip()
focal_class.full_signature: public Path zip()
focal_class.identifier: zip
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Path
focal_class.signature: Path zip()
focal_class.class_method_signature: BundleExporter.cleanup()
focal_class.full_signature: public void cleanup()
focal_class.identifier: cleanup
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void cleanup()
focal_class.class_method_signature: BundleExporter.persistBundleInfo()
focal_class.full_signature:  void persistBundleInfo()
focal_class.identifier: persistBundleInfo
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void persistBundleInfo()
focal_class.class_method_signature: BundleExporter.persist(WorkspaceInfo ws)
focal_class.full_signature:  void persist(WorkspaceInfo ws)
focal_class.identifier: persist
focal_class.parameters: (WorkspaceInfo ws)
focal_class.return: void
focal_class.signature: void persist(WorkspaceInfo ws)
focal_class.class_method_signature: BundleExporter.persist(StoreInfo s)
focal_class.full_signature:  void persist(StoreInfo s)
focal_class.identifier: persist
focal_class.parameters: (StoreInfo s)
focal_class.return: void
focal_class.signature: void persist(StoreInfo s)
focal_class.class_method_signature: BundleExporter.toWorkspaceRelativePath(File newFileRef)
focal_class.full_signature:  String toWorkspaceRelativePath(File newFileRef)
focal_class.identifier: toWorkspaceRelativePath
focal_class.parameters: (File newFileRef)
focal_class.return: String
focal_class.signature: String toWorkspaceRelativePath(File newFileRef)
focal_class.class_method_signature: BundleExporter.isFileBased(DataStoreInfo ds)
focal_class.full_signature:  FileParam isFileBased(DataStoreInfo ds)
focal_class.identifier: isFileBased
focal_class.parameters: (DataStoreInfo ds)
focal_class.return: FileParam
focal_class.signature: FileParam isFileBased(DataStoreInfo ds)
focal_class.class_method_signature: BundleExporter.findFile(DataStoreInfo ds, DataAccessFactory factory)
focal_class.full_signature:  FileParam findFile(DataStoreInfo ds, DataAccessFactory factory)
focal_class.identifier: findFile
focal_class.parameters: (DataStoreInfo ds, DataAccessFactory factory)
focal_class.return: FileParam
focal_class.signature: FileParam findFile(DataStoreInfo ds, DataAccessFactory factory)
focal_class.class_method_signature: BundleExporter.toFile(Object obj)
focal_class.full_signature:  File toFile(Object obj)
focal_class.identifier: toFile
focal_class.parameters: (Object obj)
focal_class.return: File
focal_class.signature: File toFile(Object obj)
focal_class.class_method_signature: BundleExporter.copyFilesTo(File dataFile, File dir, DataStoreInfo store)
focal_class.full_signature:  void copyFilesTo(File dataFile, File dir, DataStoreInfo store)
focal_class.identifier: copyFilesTo
focal_class.parameters: (File dataFile, File dir, DataStoreInfo store)
focal_class.return: void
focal_class.signature: void copyFilesTo(File dataFile, File dir, DataStoreInfo store)
focal_class.class_method_signature: BundleExporter.ingestInto(GeoPackage gpkg, DataStoreInfo store)
focal_class.full_signature:  void ingestInto(GeoPackage gpkg, DataStoreInfo store)
focal_class.identifier: ingestInto
focal_class.parameters: (GeoPackage gpkg, DataStoreInfo store)
focal_class.return: void
focal_class.signature: void ingestInto(GeoPackage gpkg, DataStoreInfo store)
focal_class.class_method_signature: BundleExporter.nativeFeatureTypeNames(DataStoreInfo store)
focal_class.full_signature:  List<String> nativeFeatureTypeNames(DataStoreInfo store)
focal_class.identifier: nativeFeatureTypeNames
focal_class.parameters: (DataStoreInfo store)
focal_class.return: List<String>
focal_class.signature: List<String> nativeFeatureTypeNames(DataStoreInfo store)
focal_class.class_method_signature: BundleExporter.filesWithBasename(File dir, final String basename)
focal_class.full_signature:  List<File> filesWithBasename(File dir, final String basename)
focal_class.identifier: filesWithBasename
focal_class.parameters: (File dir, final String basename)
focal_class.return: List<File>
focal_class.signature: List<File> filesWithBasename(File dir, final String basename)
focal_class.class_method_signature: BundleExporter.srid(String srs)
focal_class.full_signature:  Integer srid(String srs)
focal_class.identifier: srid
focal_class.parameters: (String srs)
focal_class.return: Integer
focal_class.signature: Integer srid(String srs)
focal_class.class_method_signature: BundleExporter.copy(T src, T dst, Class<T> type)
focal_class.full_signature:  T copy(T src, T dst, Class<T> type)
focal_class.identifier: copy
focal_class.parameters: (T src, T dst, Class<T> type)
focal_class.return: T
focal_class.signature: T copy(T src, T dst, Class<T> type)
focal_class.class_method_signature: BundleExporter.persist(ResourceInfo r)
focal_class.full_signature:  void persist(ResourceInfo r)
focal_class.identifier: persist
focal_class.parameters: (ResourceInfo r)
focal_class.return: void
focal_class.signature: void persist(ResourceInfo r)
focal_class.class_method_signature: BundleExporter.persist(LayerInfo l)
focal_class.full_signature:  void persist(LayerInfo l)
focal_class.identifier: persist
focal_class.parameters: (LayerInfo l)
focal_class.return: void
focal_class.signature: void persist(LayerInfo l)
focal_class.class_method_signature: BundleExporter.persist(StyleInfo s)
focal_class.full_signature:  void persist(StyleInfo s)
focal_class.identifier: persist
focal_class.parameters: (StyleInfo s)
focal_class.return: void
focal_class.signature: void persist(StyleInfo s)
focal_class.class_method_signature: BundleExporter.convertToWorkspaceLocal(StyleInfo s)
focal_class.full_signature:  StyleInfo convertToWorkspaceLocal(StyleInfo s)
focal_class.identifier: convertToWorkspaceLocal
focal_class.parameters: (StyleInfo s)
focal_class.return: StyleInfo
focal_class.signature: StyleInfo convertToWorkspaceLocal(StyleInfo s)
focal_class.class_method_signature: BundleExporter.persist(CatalogInfo info, File file)
focal_class.full_signature:  void persist(CatalogInfo info, File file)
focal_class.identifier: persist
focal_class.parameters: (CatalogInfo info, File file)
focal_class.return: void
focal_class.signature: void persist(CatalogInfo info, File file)
focal_method.body: public Path run() throws Exception {
          //TODO: layer groups
  
          persistBundleInfo();
          persist(workspace);
  
          try (
                  CloseableIterator<StoreInfo> sit = catalog.list(StoreInfo.class, equal("workspace", workspace))
          ) {
              while (sit.hasNext()) {
                  StoreInfo store = sit.next();
  
                  persist(store);
              }
          }
  
          return root();
      }
focal_method.class_method_signature: BundleExporter.run()
focal_method.full_signature: public Path run()
focal_method.identifier: run
focal_method.invocations: persistBundleInfo persist list equal hasNext next persist root
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Path
focal_method.signature: Path run()