|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.observation.event.AbstractFilterableEvent
org.xwiki.bridge.event.AbstractDocumentEvent
org.xwiki.bridge.event.DocumentRolledBackEvent
@Unstable public class DocumentRolledBackEvent
An event triggered after a document is rolled back to a previous revision.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
getRevision()
|
boolean |
matches(Object otherEvent)
|
| Methods inherited from class org.xwiki.observation.event.AbstractFilterableEvent |
|---|
equals, getEventFilter, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentRolledBackEvent()
DocumentRolledBackEvent events.
public DocumentRolledBackEvent(DocumentReference documentReference)
DocumentRolledBackEvent events that target the specified document.
documentReference - the reference of the document to match
public 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 events| Method Detail |
|---|
public String getRevision()
public boolean matches(Object otherEvent)
matches in interface org.xwiki.observation.event.Eventmatches in class org.xwiki.observation.event.AbstractFilterableEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||