use of de.tudarmstadt.ukp.clarin.webanno.api.event.AfterDocumentResetEvent in project webanno by webanno.
the class DocumentServiceImpl method resetAnnotationCas.
@Override
public void resetAnnotationCas(SourceDocument aDocument, User aUser) throws UIMAException, IOException {
AnnotationDocument adoc = getAnnotationDocument(aDocument, aUser);
JCas jcas = createOrReadInitialCas(aDocument);
writeAnnotationCas(jcas, aDocument, aUser, false);
applicationEventPublisher.publishEvent(new AfterDocumentResetEvent(this, adoc, jcas));
}
Aggregations