Examples of Exporter


Examples of org.gephi.io.exporter.spi.Exporter

        }
        exportFile(file, fileExporter);
    }

    public void exportFile(File file, Workspace workspace) throws IOException {
        Exporter fileExporter = getFileExporter(file);
        if (fileExporter == null) {
            throw new RuntimeException(NbBundle.getMessage(ExportControllerImpl.class, "ExportControllerImpl.error.nomatchingexporter"));
        }
        fileExporter.setWorkspace(workspace);
        exportFile(file, fileExporter);
    }
View Full Code Here

Examples of org.hibernate.tool.hbm2x.Exporter

  }

 
  /*final*/ public void execute() {
 
    Exporter exporter = configureExporter(createExporter() );
    exporter.start();
   
  }
View Full Code Here

Examples of org.hibernate.tool.hbm2x.Exporter

     * @return Exporter
     */
    protected Exporter createExporter() {
        String exporterClass = getComponentProperty("exporterclass");
        if (exporterClass != null) {
            Exporter exporter = (Exporter) HibernateUtils.getClass(exporterClass);
            if (exporter != null) {
                getLog().info("Using exporter class " + exporterClass);
                return exporter;
            } else {
                getLog().error("Could not create custom exporter class: " + exporterClass);
View Full Code Here

Examples of org.hibernate.tool.hbm2x.Exporter

    HibernateMappingGlobalSettings hgs = new HibernateMappingGlobalSettings();
    hgs.setDefaultPackage("org.hibernate.tool.hbm2x.hbm2hbmxml");
    hgs.setSchemaName("myschema");
    hgs.setCatalogName("mycatalog");
   
    Exporter gsExporter = new HibernateMappingExporter(getCfg(), getOutputDir() );
    ( (HibernateMappingExporter)gsExporter).setGlobalSettings(hgs);
 
    gsExporter.start();

    File outputXml = new File(getOutputDir().getAbsolutePath() + "/org/hibernate/tool/hbm2x/hbm2hbmxml/BasicGlobals.hbm.xml");
    assertFileAndExists(outputXml);

    SAXReader xmlReader =  this.getSAXReader();
View Full Code Here

Examples of org.hibernate.tool.hbm2x.Exporter

    HibernateMappingGlobalSettings hgs = new HibernateMappingGlobalSettings();
    hgs.setDefaultPackage("org.hibernate.tool.hbm2x.hbm2hbmxml");
    hgs.setDefaultAccess("field");
    hgs.setDefaultCascade("save-update");
   
    Exporter gbsExporter = new HibernateMappingExporter(getCfg(), getOutputDir() );
    ( (HibernateMappingExporter)gbsExporter).setGlobalSettings(hgs);
 
    gbsExporter.start();

    File outputXml = new File(getOutputDir().getAbsolutePath() + "/org/hibernate/tool/hbm2x/hbm2hbmxml/BasicGlobals.hbm.xml");
    assertFileAndExists(outputXml);

    SAXReader xmlReader =  this.getSAXReader();
View Full Code Here

Examples of org.hibernate.tool.hbm2x.Exporter

    HibernateMappingGlobalSettings hgs = new HibernateMappingGlobalSettings();
    hgs.setDefaultPackage("org.hibernate.tool.hbm2x.hbm2hbmxml");
    hgs.setDefaultAccess("property");
    hgs.setDefaultCascade("none");
   
    Exporter gbsExporter = new HibernateMappingExporter(getCfg(), getOutputDir() );
    ( (HibernateMappingExporter)gbsExporter).setGlobalSettings(hgs);
 
    gbsExporter.start();

    File outputXml = new File(getOutputDir().getAbsolutePath() + "/org/hibernate/tool/hbm2x/hbm2hbmxml/BasicGlobals.hbm.xml");
    assertFileAndExists(outputXml);

    SAXReader xmlReader =  this.getSAXReader();
View Full Code Here

Examples of org.hibernate.tool.hbm2x.Exporter

    HibernateMappingGlobalSettings hgs = new HibernateMappingGlobalSettings();
    hgs.setDefaultPackage("org.hibernate.tool.hbm2x.hbm2hbmxml");
    hgs.setDefaultLazy(false);
    hgs.setAutoImport(false);   
   
    Exporter gbsExporter = new HibernateMappingExporter(getCfg(), getOutputDir() );
    ( (HibernateMappingExporter)gbsExporter).setGlobalSettings(hgs);
    gbsExporter.start();

    File outputXml = new File(getOutputDir().getAbsolutePath() + "/org/hibernate/tool/hbm2x/hbm2hbmxml/BasicGlobals.hbm.xml");
    assertFileAndExists(outputXml);

    SAXReader xmlReader =  this.getSAXReader();
View Full Code Here

Examples of org.jitterbit.integration.client.project.jitterpack.Exporter

            PostExportManager postExportManager = null;
            try {
                ManagedProject project = exportUi.getProjectToExport();
                ExportParameters params = exportUi.getExportParameters();
                postExportManager = project.prepareForExport(params.arePasswordsExported());
                Exporter exporter = createExporter(params);
                JitterPack jp = exporter.pack(project, exportUi.getComment(), exportUi.getDestination(), params);
                callback.succeeded(jp);
                postExportManager.runJobs(PostExportJob.Condition.ON_SUCCESS);
            } catch (Throwable err) {
                // This is a boundary to the UI: we must catch all errors here, including
                // RuntimeExceptions and Errors (see bug 2803249)
View Full Code Here

Examples of org.pentaho.platform.plugin.services.importexport.Exporter

    String path = repositoryFile.getPath();

    final InputStream is;

    try {
      Exporter exporter = getExporter();
      exporter.setRepoPath( path );
      exporter.setRepoWs( repoWs );

      File zipFile = exporter.doExportAsZip( repositoryFile );
      is = getFileInputStream( zipFile );
    } catch ( Exception e ) {
      return buildServerErrorResponse( e.toString() );
    }
View Full Code Here

Examples of org.pentaho.platform.plugin.services.importexport.Exporter

  protected Response buildOkResponse( Object o, String s ) {
    return Response.ok( o, s ).build();
  }

  protected Exporter getExporter() {
    return new Exporter( repository );
  }
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.