Nuxeo Enterprise Platform 5.4

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 java.lang.Object
implements CoreEvent

Nuxeo core event implementation.

Author:
Julien Anguenot, Thierry Martins

Field Summary
static java.lang.String CATEGORY_ATTRIBUTE
           
static java.lang.String COMMENT_ATTRIBUTE
           
 
Constructor Summary
CoreEventImpl(java.lang.String eventId, java.lang.Object source, java.util.Map<java.lang.String,?> info, java.security.Principal principal, java.lang.String category, java.lang.String comment)
           
 
Method Summary
 java.lang.String getCategory()
          Returns the event category.
 java.lang.String getComment()
          Returns the associated event comment.
 java.util.Date getDate()
          Returns the date when the event occurred.
 java.lang.String getEventId()
          Returns the event identifier.
 java.util.Map<java.lang.String,?> getInfo()
          Returns the information attached to the event.
 java.util.List<CoreEvent> getNestedEvents()
           
 java.security.Principal getPrincipal()
          Returns the principal responsible for this event.
 java.lang.Object getSource()
          Returns the source object that originated the event.
 boolean isComposite()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMENT_ATTRIBUTE

public static final java.lang.String COMMENT_ATTRIBUTE
See Also:
Constant Field Values

CATEGORY_ATTRIBUTE

public static final java.lang.String CATEGORY_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

CoreEventImpl

public CoreEventImpl(java.lang.String eventId,
                     java.lang.Object source,
                     java.util.Map<java.lang.String,?> info,
                     java.security.Principal principal,
                     java.lang.String category,
                     java.lang.String comment)
Method Detail

isComposite

public boolean isComposite()

getNestedEvents

public java.util.List<CoreEvent> getNestedEvents()

getEventId

public java.lang.String getEventId()
Description copied from interface: CoreEvent
Returns the event identifier.

Specified by:
getEventId in interface CoreEvent
Returns:
the event identifier

getInfo

public java.util.Map<java.lang.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 java.lang.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 java.lang.String getCategory()
Description copied from interface: CoreEvent
Returns the event category.

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

getComment

public java.lang.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 java.util.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 java.security.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.