|
||||||||||
| 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.DocumentRollingBackEvent
@Unstable public class DocumentRollingBackEvent
An event triggered before a document is rolled back to a previous revision.
| Constructor Summary | |
|---|---|
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. |
|
| 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 DocumentRollingBackEvent()
DocumentRollingBackEvent events.
public DocumentRollingBackEvent(DocumentReference documentReference)
DocumentRollingBackEvent events that target the specified document.
documentReference - the reference of the document to match
public 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 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 | |||||||||