org.xwiki.annotation.event
Class AnnotationUpdatedEvent
java.lang.Object
org.xwiki.observation.event.AbstractFilterableEvent
org.xwiki.bridge.event.AbstractDocumentEvent
org.xwiki.annotation.event.AbstractAnnotationEvent
org.xwiki.annotation.event.AnnotationUpdatedEvent
- All Implemented Interfaces:
- Serializable, AnnotationEvent, Event, FilterableEvent
public class AnnotationUpdatedEvent
- extends AbstractAnnotationEvent
An event triggered when an annotation is updated.
- Since:
- 2.6RC2
- See Also:
- Serialized Form
Methods inherited from interface org.xwiki.observation.event.Event |
matches |
AnnotationUpdatedEvent
public AnnotationUpdatedEvent()
- Constructor initializing the event filter with an
AlwaysMatchingEventFilter
, meaning that this event will match any
other annotation update event.
AnnotationUpdatedEvent
public AnnotationUpdatedEvent(String documentName,
String identifier)
- Constructor initializing the event filter with a
FixedNameEventFilter
,
meaning that this event will match only annotation update events affecting the document matching the passed
document name.
- Parameters:
documentName
- the name of the document to matchidentifier
- the identifier of the updated annotation
AnnotationUpdatedEvent
public AnnotationUpdatedEvent(EventFilter eventFilter)
- Constructor using a custom
EventFilter
.
- Parameters:
eventFilter
- the filter to use for matching events