Package org.xwiki.bridge.event
Class DocumentVersionRangeDeletingEvent
- java.lang.Object
-
- org.xwiki.observation.event.AbstractFilterableEvent
-
- org.xwiki.observation.event.AbstractCancelableEvent
-
- org.xwiki.bridge.event.AbstractDocumentEvent
-
- org.xwiki.bridge.event.DocumentVersionRangeDeletingEvent
-
- All Implemented Interfaces:
Serializable
,org.xwiki.observation.event.BeginEvent
,org.xwiki.observation.event.CancelableEvent
,org.xwiki.observation.event.Event
,org.xwiki.observation.event.FilterableEvent
public class DocumentVersionRangeDeletingEvent extends AbstractDocumentEvent implements org.xwiki.observation.event.BeginEvent
An event triggered before one or several versions of a document history have been deleted.The event also send the following parameters:
- source: the current {com.xpn.xwiki.doc.XWikiDocument} instance
- data: the current {com.xpn.xwiki.XWikiContext} instance
- Since:
- 13.7RC1
- Version:
- $Id: ea95153b4b4e23d48749fa86c58b7043ec7ae6ab $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentVersionRangeDeletingEvent()
Matches allDocumentVersionRangeDeletingEvent
events.DocumentVersionRangeDeletingEvent(DocumentReference documentReference, String from, String to)
DocumentVersionRangeDeletingEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a customEventFilter
to match the document reference.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFrom()
String
getTo()
-
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
-
DocumentVersionRangeDeletingEvent
public DocumentVersionRangeDeletingEvent()
Matches allDocumentVersionRangeDeletingEvent
events.
-
DocumentVersionRangeDeletingEvent
public DocumentVersionRangeDeletingEvent(DocumentReference documentReference, String from, String to)
- Parameters:
documentReference
- the reference of the document to matchfrom
- the oldest version deletedto
- the most recent version deleted
-
DocumentVersionRangeDeletingEvent
public DocumentVersionRangeDeletingEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a customEventFilter
to match the document reference.- Parameters:
eventFilter
- the filter to use for matching events
-
-