public class AnnotationAddedEvent extends AbstractAnnotationEvent
The event also send the following parameters:
Constructor and Description |
---|
AnnotationAddedEvent()
Constructor initializing the event filter with an
AlwaysMatchingEventFilter , meaning that this event will match any
other annotation add event. |
AnnotationAddedEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a custom
EventFilter . |
AnnotationAddedEvent(String documentName,
String identifier)
Constructor initializing the event filter with a
FixedNameEventFilter ,
meaning that this event will match only annotation add events affecting the document matching the passed document
name. |
getIdentifier
cancel, cancel, getReason, isCanceled
equals, getEventFilter, hashCode, matches
public AnnotationAddedEvent()
AlwaysMatchingEventFilter
, meaning that this event will match any
other annotation add event.public AnnotationAddedEvent(String documentName, String identifier)
FixedNameEventFilter
,
meaning that this event will match only annotation add events affecting the document matching the passed document
name.documentName
- the name of the document to matchidentifier
- the identifier of the added annotationpublic AnnotationAddedEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
EventFilter
.eventFilter
- the filter to use for matching eventsCopyright © 2004–2022 XWiki. All rights reserved.