Package org.xwiki.bridge.event
Class DocumentCreatedEvent
- java.lang.Object
-
- org.xwiki.observation.event.AbstractFilterableEvent
-
- org.xwiki.observation.event.AbstractCancelableEvent
-
- org.xwiki.bridge.event.AbstractDocumentEvent
-
- org.xwiki.bridge.event.DocumentCreatedEvent
-
- All Implemented Interfaces:
Serializable
,org.xwiki.observation.event.CancelableEvent
,org.xwiki.observation.event.Event
,org.xwiki.observation.event.FilterableEvent
public class DocumentCreatedEvent extends AbstractDocumentEvent
An event triggered after a document is created.The event also send the following parameters:
- source: the current {com.xpn.xwiki.doc.XWikiDocument} instance
- data: the current {com.xpn.xwiki.XWikiContext} instance
- Since:
- 2.7RC1
- Version:
- $Id: 123ed3ea9c55bf3d111fa319422f0e229bb9c09f $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DocumentCreatedEvent()
Constructor initializing the event filter with anAlwaysMatchingEventFilter
, meaning that this event will match any other document delete event.DocumentCreatedEvent(DocumentReference documentReference)
Constructor initializing the event filter with aFixedNameEventFilter
, meaning that this event will match only delete events affecting the same document.DocumentCreatedEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a customEventFilter
.
-
Method Summary
-
Methods inherited from class org.xwiki.observation.event.AbstractCancelableEvent
cancel, cancel, getReason, isCanceled
-
Methods inherited from class org.xwiki.observation.event.AbstractFilterableEvent
equals, getEventFilter, hashCode, matches
-
-
-
-
Constructor Detail
-
DocumentCreatedEvent
public DocumentCreatedEvent()
Constructor initializing the event filter with anAlwaysMatchingEventFilter
, meaning that this event will match any other document delete event.
-
DocumentCreatedEvent
public DocumentCreatedEvent(DocumentReference documentReference)
Constructor initializing the event filter with aFixedNameEventFilter
, meaning that this event will match only delete events affecting the same document.- Parameters:
documentReference
- the reference of the document to match
-
DocumentCreatedEvent
public DocumentCreatedEvent(org.xwiki.observation.event.filter.EventFilter eventFilter)
Constructor using a customEventFilter
.- Parameters:
eventFilter
- the filter to use for matching events
-
-