Class 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 Detail

      • DocumentVersionRangeDeletingEvent

        public DocumentVersionRangeDeletingEvent​(DocumentReference documentReference,
                                                 String from,
                                                 String to)
        Parameters:
        documentReference - the reference of the document to match
        from - the oldest version deleted
        to - the most recent version deleted
      • DocumentVersionRangeDeletingEvent

        public DocumentVersionRangeDeletingEvent​(org.xwiki.observation.event.filter.EventFilter eventFilter)
        Constructor using a custom EventFilter to match the document reference.
        Parameters:
        eventFilter - the filter to use for matching events
    • Method Detail

      • getFrom

        public String getFrom()
        Returns:
        the from
      • getTo

        public String getTo()
        Returns:
        the to