org.nuxeo.ecm.core.event.impl
Class InlineEventContext
java.lang.Object
org.nuxeo.ecm.core.event.impl.AbstractEventContext
org.nuxeo.ecm.core.event.impl.EventContextImpl
org.nuxeo.ecm.core.event.impl.InlineEventContext
- All Implemented Interfaces:
- java.io.Serializable, EventContext
public class InlineEventContext
- extends EventContextImpl
Minimal eventContext implementation that can be
used for events that are not bound to a CoreSession.
- Author:
- Thierry Delprat
- See Also:
- Serialized Form
Constructor Summary |
InlineEventContext(CoreSession session,
java.security.Principal principal,
java.util.Map<java.lang.String,java.io.Serializable> properties)
|
InlineEventContext(java.security.Principal principal,
java.util.Map<java.lang.String,java.io.Serializable> properties)
|
Method Summary |
Event |
newEvent(java.lang.String name)
Creates a new event in that context given the event name. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InlineEventContext
public InlineEventContext(java.security.Principal principal,
java.util.Map<java.lang.String,java.io.Serializable> properties)
InlineEventContext
public InlineEventContext(CoreSession session,
java.security.Principal principal,
java.util.Map<java.lang.String,java.io.Serializable> properties)
newEvent
public Event newEvent(java.lang.String name)
- Description copied from interface:
EventContext
- Creates a new event in that context given the event name. The default
flags for the event will be used.
- Specified by:
newEvent
in interface EventContext
- Overrides:
newEvent
in class AbstractEventContext
- Parameters:
name
- the event name
- Returns:
- the event
- See Also:
EventContext.newEvent(String, int)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.