@Unstable public class DocumentRollingBackEvent extends AbstractDocumentEvent
| 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) |
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.Eventmatches in class org.xwiki.observation.event.AbstractFilterableEventCopyright © 2004–2014 XWiki. All rights reserved.