Class DocumentVersionRangeDeletedEvent

  • All Implemented Interfaces:
    Serializable, org.xwiki.observation.event.CancelableEvent, org.xwiki.observation.event.EndEvent, org.xwiki.observation.event.Event, org.xwiki.observation.event.FilterableEvent

    public class DocumentVersionRangeDeletedEvent
    extends AbstractDocumentEvent
    implements org.xwiki.observation.event.EndEvent
    An event triggered after 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.5RC1
    Version:
    $Id: 1f0d4f60f7478bdae90db81421dd6f9f016091fa $
    See Also:
    Serialized Form
    • Constructor Detail

      • DocumentVersionRangeDeletedEvent

        public DocumentVersionRangeDeletedEvent​(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
      • DocumentVersionRangeDeletedEvent

        public DocumentVersionRangeDeletedEvent​(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