Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.event.impl
Class CoreEventImpl

java.lang.Object
  extended by 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
static String CATEGORY_ATTRIBUTE
           
static String COMMENT_ATTRIBUTE
           
 
Constructor Summary
CoreEventImpl(String eventId, Object source, Map<String,?> info, Principal principal, String category, String comment)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

CoreEventImpl

public CoreEventImpl(String eventId,
                     Object source,
                     Map<String,?> info,
                     Principal principal,
                     String category,
                     String comment)
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 interface CoreEvent
Returns:
the event identifier

getInfo

public Map<String,?> getInfo()
Description copied from interface: CoreEvent
Returns the information attached to the event.

Specified by:
getInfo in interface CoreEvent
Returns:
a map holding the event information

getSource

public Object getSource()
Description copied from interface: CoreEvent
Returns the source object that originated the event.

Specified by:
getSource in interface CoreEvent
Returns:
the object that originated the event

getCategory

public String getCategory()
Description copied from interface: CoreEvent
Returns the event category.

Specified by:
getCategory in interface CoreEvent
Returns:
the event category

getComment

public String getComment()
Description copied from interface: CoreEvent
Returns the associated event comment.

Specified by:
getComment in interface CoreEvent
Returns:
the associated event comment

getDate

public Date getDate()
Description copied from interface: CoreEvent
Returns the date when the event occurred.

Specified by:
getDate in interface CoreEvent
Returns:
a java date object

getPrincipal

public Principal getPrincipal()
Description copied from interface: CoreEvent
Returns the principal responsible for this event.

Specified by:
getPrincipal in interface CoreEvent
Returns:
the principal responsible for this event.

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.