private JCas createCorrectionCas(JCas mergeJCas, AnnotatorState aState, AnnotationDocument aRandomAnnotationDocument) throws UIMAException, ClassNotFoundException, IOException { User user = userRepository.getCurrentUser(); mergeJCas = documentService.readAnnotationCas(aState.getDocument(), user); correctionDocumentService.writeCorrectionCas(mergeJCas, aRandomAnnotationDocument.getDocument()); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument())); return mergeJCas; } }
private JCas createCorrectionCas(JCas mergeJCas, AnnotatorState aState, AnnotationDocument aRandomAnnotationDocument) throws UIMAException, ClassNotFoundException, IOException { User user = userRepository.getCurrentUser(); mergeJCas = documentService.readAnnotationCas(aState.getDocument(), user); correctionDocumentService.writeCorrectionCas(mergeJCas, aRandomAnnotationDocument.getDocument()); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument())); return mergeJCas; } }
correctionDocumentService.writeCorrectionCas(mergeJCas, aDocument); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument())); randomAnnotationDocument); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument()));
correctionDocumentService.writeCorrectionCas(mergeJCas, aDocument); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument())); randomAnnotationDocument); updateDocumentTimestampAfterWrite(aState, correctionDocumentService .getCorrectionCasTimestamp(aState.getDocument()));