Package org.xwiki.eventstream
Interface EventFactory
-
@Role public interface EventFactory
A factory which createsEvent
objects ready to be used. Besides instantiating an Event object, the factory also fills in some of the fields with the default values, for example a newevent ID
, the currentevent group id
, the currentuser
, and the currentdate
.- Since:
- 3.0M2
- Version:
- $Id: dfbb31dd494d88f1fab6b05f3a21301fd6dc9645 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Event
createEvent()
Create a new event with some fields already filled in.Event
createRawEvent()
Create a new event without any of the fields filled in.
-
-
-
Method Detail
-
createEvent
Event createEvent()
Create a new event with some fields already filled in.- unique event ID
- the current event group ID
- the current user
- the current date
- Returns:
- a ready-to-use event
-
createRawEvent
Event createRawEvent()
Create a new event without any of the fields filled in.- Returns:
- a blank event
-
-