org.xwiki.annotation.maintainer
Interface AnnotationMaintainer
- All Known Implementing Classes:
- AbstractAnnotationMaintainer, DefaultAnnotationMaintainer
@Role
public interface AnnotationMaintainer
Interface defining the annotation maintainer service, which should be able to update the annotations on a specified
target, wrt to the previous and the current versions of the content.
- Since:
- 2.3M1
updateAnnotations
void updateAnnotations(String target,
String previousContent,
String currentContent)
throws MaintainerServiceException
- Updates all the annotations found on the passed target. Should use the IO services to get the annotations and
information about the target, such as syntax.
- Parameters:
target
- is serialized reference to the content concerned by the annotationpreviousContent
- the previous content of the document (before the update)currentContent
- the current content of the document (after the update)
- Throws:
MaintainerServiceException
- in case something goes wrong handling the annotation updates on the passed
content