public abstract class AbstractAnnotationEvent extends AbstractDocumentEvent implements AnnotationEvent
Event
.Constructor and Description |
---|
AbstractAnnotationEvent()
Constructor initializing the event filter with an
AlwaysMatchingEventFilter , meaning that this event will match any
other annotation event (add, update, delete). |
AbstractAnnotationEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a custom
EventFilter . |
AbstractAnnotationEvent(String documentName,
String identifier)
Constructor initializing the event filter with a
FixedNameEventFilter ,
meaning that this event will match only comment events affecting the document matching the passed document name. |
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier()
Retrieves the identifier of the annotation added/updated/deleted in the event.
|
cancel, cancel, getReason, isCanceled
equals, getEventFilter, hashCode, matches
public AbstractAnnotationEvent()
AlwaysMatchingEventFilter
, meaning that this event will match any
other annotation event (add, update, delete).public AbstractAnnotationEvent(String documentName, String identifier)
FixedNameEventFilter
,
meaning that this event will match only comment events affecting the document matching the passed document name.documentName
- the name of the updated document to matchidentifier
- the identifier of the annotation added/updated/deletedpublic AbstractAnnotationEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
EventFilter
.eventFilter
- the filter to use for matching eventspublic String getIdentifier()
AnnotationEvent
getIdentifier
in interface AnnotationEvent
Copyright © 2004–2022 XWiki. All rights reserved.