public class DocumentRollingBackEvent extends AbstractDocumentEvent
The event also send the following parameters:
Constructor and Description |
---|
DocumentRollingBackEvent()
Matches all
DocumentRollingBackEvent events. |
DocumentRollingBackEvent(DocumentReference documentReference)
Matches
DocumentRollingBackEvent events that target the specified document. |
DocumentRollingBackEvent(DocumentReference documentReference,
String revision)
Matches
DocumentRollingBackEvent events that target the specified document and revision. |
DocumentRollingBackEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a custom
EventFilter . |
Modifier and Type | Method and Description |
---|---|
String |
getRevision() |
boolean |
matches(Object otherEvent) |
cancel, cancel, getReason, isCanceled
public DocumentRollingBackEvent()
DocumentRollingBackEvent
events.public DocumentRollingBackEvent(DocumentReference documentReference)
DocumentRollingBackEvent
events that target the specified document.documentReference
- the reference of the document to matchpublic DocumentRollingBackEvent(DocumentReference documentReference, String revision)
DocumentRollingBackEvent
events that target the specified document and revision. The revision is
matched only if it's not null
.documentReference
- the reference of the document to matchrevision
- the revision the document is about to be rolled back topublic DocumentRollingBackEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
EventFilter
.eventFilter
- the filter to use for matching eventspublic String getRevision()
public boolean matches(Object otherEvent)
matches
in interface org.xwiki.observation.event.Event
matches
in class org.xwiki.observation.event.AbstractFilterableEvent
Copyright © 2004–2022 XWiki. All rights reserved.