Class CoreEventImpl
- java.lang.Object
-
- org.nuxeo.ecm.core.api.event.impl.CoreEventImpl
-
- All Implemented Interfaces:
CoreEvent
public class CoreEventImpl extends Object implements CoreEvent
Nuxeo core event implementation.- Author:
- Julien Anguenot, Thierry Martins
-
-
Field Summary
Fields Modifier and Type Field Description protected String
category
static String
CATEGORY_ATTRIBUTE
protected String
comment
static String
COMMENT_ATTRIBUTE
protected Date
date
protected String
eventId
protected Map<String,Object>
info
protected Principal
principal
protected Object
source
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCategory()
Returns the event category.String
getComment()
Returns the associated event comment.Date
getDate()
Returns the date when the event occurred.String
getEventId()
Returns the event identifier.Map<String,?>
getInfo()
Returns the information attached to the event.List<CoreEvent>
getNestedEvents()
Principal
getPrincipal()
Returns the principal responsible for this event.Object
getSource()
Returns the source object that originated the event.boolean
isComposite()
String
toString()
-
-
-
Field Detail
-
COMMENT_ATTRIBUTE
public static final String COMMENT_ATTRIBUTE
- See Also:
- Constant Field Values
-
CATEGORY_ATTRIBUTE
public static final String CATEGORY_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isComposite
public boolean isComposite()
-
getNestedEvents
public List<CoreEvent> getNestedEvents()
-
getEventId
public String getEventId()
Description copied from interface:CoreEvent
Returns the event identifier.- Specified by:
getEventId
in interfaceCoreEvent
- Returns:
- the event identifier
-
getInfo
public Map<String,?> getInfo()
Description copied from interface:CoreEvent
Returns the information attached to the event.
-
getSource
public Object getSource()
Description copied from interface:CoreEvent
Returns the source object that originated the event.
-
getCategory
public String getCategory()
Description copied from interface:CoreEvent
Returns the event category.- Specified by:
getCategory
in interfaceCoreEvent
- Returns:
- the event category
-
getComment
public String getComment()
Description copied from interface:CoreEvent
Returns the associated event comment.- Specified by:
getComment
in interfaceCoreEvent
- Returns:
- the associated event comment
-
getDate
public Date getDate()
Description copied from interface:CoreEvent
Returns the date when the event occurred.
-
getPrincipal
public Principal getPrincipal()
Description copied from interface:CoreEvent
Returns the principal responsible for this event.- Specified by:
getPrincipal
in interfaceCoreEvent
- Returns:
- the principal responsible for this event.
-
-