Class DocumentRestoredEvent

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

    public class DocumentRestoredEvent
    extends AbstractDocumentRestoreEvent
    An event triggered after a deleted document is restored.

    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.7
    Version:
    $Id: 84337ac46397c8a7c1f60d2cb9d828f0780ae986 $
    See Also:
    Serialized Form
    • Constructor Detail

      • DocumentRestoredEvent

        public DocumentRestoredEvent()
        Constructor initializing the event filter with an AlwaysMatchingEventFilter, meaning that this event will match any other document delete event.
      • DocumentRestoredEvent

        public DocumentRestoredEvent​(DocumentReference documentReference)
        Constructor initializing the event filter with a FixedNameEventFilter, meaning that this event will match only delete events affecting the same document.
        Parameters:
        documentReference - the reference of the document to match
      • DocumentRestoredEvent

        public DocumentRestoredEvent​(org.xwiki.observation.event.filter.EventFilter eventFilter)
        Constructor using a custom EventFilter.
        Parameters:
        eventFilter - the filter to use for matching events
      • DocumentRestoredEvent

        public DocumentRestoredEvent​(DocumentReference documentReference,
                                     long deleteId)
        Parameters:
        documentReference - the reference of the document to match
        deleteId - the unique identifier of the deleted document