public class DocumentRolledBackEvent extends AbstractDocumentEvent
The event also send the following parameters:
Constructor and Description |
---|
DocumentRolledBackEvent()
Matches all
DocumentRolledBackEvent events. |
DocumentRolledBackEvent(DocumentReference documentReference)
Matches
DocumentRolledBackEvent events that target the specified document. |
DocumentRolledBackEvent(DocumentReference documentReference,
String revision)
Matches
DocumentRolledBackEvent events that target the specified document and revision. |
DocumentRolledBackEvent(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 DocumentRolledBackEvent()
DocumentRolledBackEvent
events.public DocumentRolledBackEvent(DocumentReference documentReference)
DocumentRolledBackEvent
events that target the specified document.documentReference
- the reference of the document to matchpublic DocumentRolledBackEvent(DocumentReference documentReference, String revision)
DocumentRolledBackEvent
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 was rolled back topublic DocumentRolledBackEvent(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–2021 XWiki. All rights reserved.