Package org.xwiki.bridge.event
Class AbstractDocumentEvent
- java.lang.Object
-
- org.xwiki.observation.event.AbstractFilterableEvent
-
- org.xwiki.observation.event.AbstractCancelableEvent
-
- org.xwiki.bridge.event.AbstractDocumentEvent
-
- All Implemented Interfaces:
Serializable
,org.xwiki.observation.event.CancelableEvent
,org.xwiki.observation.event.Event
,org.xwiki.observation.event.FilterableEvent
- Direct Known Subclasses:
AbstractDocumentRestoreEvent
,DocumentCreatedEvent
,DocumentCreatingEvent
,DocumentDeletedEvent
,DocumentDeletingEvent
,DocumentRolledBackEvent
,DocumentRollingBackEvent
,DocumentUpdatedEvent
,DocumentUpdatingEvent
,DocumentVersionRangeDeletedEvent
,DocumentVersionRangeDeletingEvent
public abstract class AbstractDocumentEvent extends org.xwiki.observation.event.AbstractCancelableEvent
Base class for all document relatedEvent
.- Since:
- 2.7RC1
- Version:
- $Id: fcc9cffcdfda3783c5ffe06c1c251d80c9fde2a3 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractDocumentEvent()
This event will match any other document event of the same type.AbstractDocumentEvent(DocumentReference documentReference)
This event will match only events of the same type affecting the same document.AbstractDocumentEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a customEventFilter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentReference
getDocumentReference()
-
Methods inherited from class org.xwiki.observation.event.AbstractCancelableEvent
cancel, cancel, getReason, isCanceled
-
Methods inherited from class org.xwiki.observation.event.AbstractFilterableEvent
equals, getEventFilter, hashCode, matches
-
-
-
-
Constructor Detail
-
AbstractDocumentEvent
public AbstractDocumentEvent()
This event will match any other document event of the same type. Since listeners may expect to find the document reference in the event, it is recommended to use the constructor with the explicit parameter when generating the event.
-
AbstractDocumentEvent
public AbstractDocumentEvent(DocumentReference documentReference)
This event will match only events of the same type affecting the same document.- Parameters:
documentReference
- the reference of the document relater to this event
-
AbstractDocumentEvent
public AbstractDocumentEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a customEventFilter
.- Parameters:
eventFilter
- the filter to use for matching events
-
-
Method Detail
-
getDocumentReference
@Unstable public DocumentReference getDocumentReference()
- Returns:
- the reference of the document targeted by this event, or
null
if it was not specified - Since:
- 14.4.2, 14.5
-
-