Class AbstractDocumentRestoreEvent

  • All Implemented Interfaces:
    Serializable, org.xwiki.observation.event.CancelableEvent, org.xwiki.observation.event.Event, org.xwiki.observation.event.FilterableEvent
    Direct Known Subclasses:
    DocumentRestoredEvent, DocumentRestoringEvent

    public abstract class AbstractDocumentRestoreEvent
    extends AbstractDocumentEvent
    Base class for event related to the restoration of a deleted document.
    Since:
    13.7
    Version:
    $Id: 8f120de8671d45ee6d8e1150d25df9231067a6a5 $
    See Also:
    Serialized Form
    • Field Detail

      • deleteId

        protected final Long deleteId
    • Constructor Detail

      • AbstractDocumentRestoreEvent

        protected AbstractDocumentRestoreEvent()
      • AbstractDocumentRestoreEvent

        protected AbstractDocumentRestoreEvent​(DocumentReference documentReference)
      • AbstractDocumentRestoreEvent

        protected AbstractDocumentRestoreEvent​(DocumentReference documentReference,
                                               long deleteId)
      • AbstractDocumentRestoreEvent

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

      • getDeleteId

        public Long getDeleteId()
        Returns:
        the unique identifier of the deleted document
      • matches

        public boolean matches​(Object otherEvent)
        Specified by:
        matches in interface org.xwiki.observation.event.Event
        Overrides:
        matches in class org.xwiki.observation.event.AbstractFilterableEvent