congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ProjectExportService.exportProject
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: webanno/webanno

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

File exportedFile = exportService.exportProject(request);
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: 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; 
  }
}

de.tudarmstadt.ukp.clarin.webanno.api.exportProjectExportServiceexportProject

Popular methods of ProjectExportService

  • importProject

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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