Package org.xwiki.bridge.event
Class AbstractDocumentRestoreEvent
- java.lang.Object
-
- org.xwiki.observation.event.AbstractFilterableEvent
-
- org.xwiki.observation.event.AbstractCancelableEvent
-
- org.xwiki.bridge.event.AbstractDocumentEvent
-
- org.xwiki.bridge.event.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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDocumentRestoreEvent()
protected
AbstractDocumentRestoreEvent(DocumentReference documentReference)
protected
AbstractDocumentRestoreEvent(DocumentReference documentReference, long deleteId)
protected
AbstractDocumentRestoreEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a customEventFilter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getDeleteId()
boolean
matches(Object otherEvent)
-
Methods inherited from class org.xwiki.bridge.event.AbstractDocumentEvent
getDocumentReference
-
Methods inherited from class org.xwiki.observation.event.AbstractCancelableEvent
cancel, cancel, getReason, isCanceled
-
-
-
-
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 customEventFilter
.- 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 interfaceorg.xwiki.observation.event.Event
- Overrides:
matches
in classorg.xwiki.observation.event.AbstractFilterableEvent
-
-