Tabnine Logo
ProjectExportService
Code IndexAdd Tabnine to your IDE (free)

How to use
ProjectExportService
in
de.tudarmstadt.ukp.clarin.webanno.api.export

Best Java code snippets using de.tudarmstadt.ukp.clarin.webanno.api.export.ProjectExportService (Showing top 10 results out of 315)

origin: webanno/webanno

File exportedFile = exportService.exportProject(request);
origin: de.tudarmstadt.ukp.inception.app/inception-ui-core

Project importedProject = exportService.importProject(request,
    new ZipFile(tempFile));
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-remote

importedProject = exportService.importProject(request, new ZipFile(tempFile));
origin: webanno/webanno

importedProject = exportService.importProject(request, new ZipFile(tempFile));
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-remote

File exportedFile = exportService.exportProject(request);
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-project

importedProject = exportService.importProject(request, new ZipFile(tempFile));
origin: webanno/webanno

@Override
public void run()
{
  File file;
  try {
    // We are in a new thread. Set up thread-specific MDC
    MDC.put(Logging.KEY_USERNAME, username);
    MDC.put(Logging.KEY_PROJECT_ID, String.valueOf(model.getProject().getId()));
    MDC.put(Logging.KEY_REPOSITORY_PATH, documentService.getDir().toString());
    
    state = State.RUNNING;
    file = exportService.exportProject(model);
    fileName = file.getAbsolutePath();
    projectName = model.getProject().getName();
    state = State.COMPLETED;
  }
  catch (ClosedByInterruptException e) {
    cancel();
  }
  catch (Throwable e) {
    LOG.error("Unexpected error during project export", e);
    model.addMessage(LogMessage.error(this, "Unexpected error during project export: %s",
            ExceptionUtils.getRootCauseMessage(e)));
    state = State.FAILED;
    // This marks the progression as complete and causes ProgressBar#onFinished
    // to be called where we display the messages
    model.progress = 100; 
  }
}

origin: webanno/webanno

importedProject = exportService.importProject(request, new ZipFile(tempFile));
origin: de.tudarmstadt.ukp.clarin.webanno/webanno-ui-project

@Override
public void run()
{
  File file;
  try {
    // We are in a new thread. Set up thread-specific MDC
    MDC.put(Logging.KEY_USERNAME, username);
    MDC.put(Logging.KEY_PROJECT_ID, String.valueOf(model.getProject().getId()));
    MDC.put(Logging.KEY_REPOSITORY_PATH, documentService.getDir().toString());
    
    state = State.RUNNING;
    file = exportService.exportProject(model);
    fileName = file.getAbsolutePath();
    projectName = model.getProject().getName();
    state = State.COMPLETED;
  }
  catch (ClosedByInterruptException e) {
    cancel();
  }
  catch (Throwable e) {
    LOG.error("Unexpected error during project export", e);
    model.addMessage(LogMessage.error(this, "Unexpected error during project export: %s",
            ExceptionUtils.getRootCauseMessage(e)));
    state = State.FAILED;
    // This marks the progression as complete and causes ProgressBar#onFinished
    // to be called where we display the messages
    model.progress = 100; 
  }
}

origin: inception-project/inception

Project importedProject = exportService.importProject(request,
    new ZipFile(tempFile));
de.tudarmstadt.ukp.clarin.webanno.api.exportProjectExportService

Most used methods

  • importProject
  • exportProject

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now