public interface AnnotationService
Modifier and Type | Method and Description |
---|---|
Annotation |
createAnnotation(CoreSession session,
Annotation annotation)
Creates an annotation on a document.
|
void |
deleteAnnotation(CoreSession session,
String annotationId)
Deletes an annotation for a document.
|
Annotation |
getAnnotation(CoreSession session,
String annotationId)
Gets an annotation.
|
List<Annotation> |
getAnnotations(CoreSession session,
String documentId,
String xpath)
Gets all annotations for a document.
|
void |
updateAnnotation(CoreSession session,
Annotation annotation)
Updates an annotation for a document.
|
Annotation createAnnotation(CoreSession session, Annotation annotation)
session
- the core sessionannotation
- the annotation to createAnnotation getAnnotation(CoreSession session, String annotationId)
session
- the core sessionannotationId
- the annotation idnull
if the annotation with the given id was not foundList<Annotation> getAnnotations(CoreSession session, String documentId, String xpath)
session
- the core sessiondocumentId
- the annotated document idxpath
- the annotated blob xpath in the documentvoid updateAnnotation(CoreSession session, Annotation annotation)
session
- the core sessionannotation
- the annotation containing the modificationsvoid deleteAnnotation(CoreSession session, String annotationId) throws IllegalArgumentException
session
- the core sessionannotationId
- the annotation idIllegalArgumentException
- if no annotation was found with the given idCopyright © 2018 Nuxeo. All rights reserved.