Package 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:
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
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
boundToCoreSession
-
Fields inherited from class org.nuxeo.ecm.core.event.impl.EventContextImpl
principal, session
-
Fields inherited from class org.nuxeo.ecm.core.event.impl.AbstractEventContext
args, EMPTY, properties, repositoryName
-
-
Constructor Summary
Constructors Constructor Description InlineEventContext(CoreSession session, NuxeoPrincipal principal, Map<String,Serializable> properties)
InlineEventContext(NuxeoPrincipal principal, Map<String,Serializable> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
newEvent(String name)
Creates a new event in that context given the event name.-
Methods inherited from class org.nuxeo.ecm.core.event.impl.EventContextImpl
getCoreSession, getPrincipal, setArgs, setCoreSession, setPrincipal, updateRepositoryName
-
Methods inherited from class org.nuxeo.ecm.core.event.impl.AbstractEventContext
getArguments, getProperties, getProperty, getRepositoryName, hasProperty, newEvent, setProperties, setProperty, setRepositoryName
-
-
-
-
Constructor Detail
-
InlineEventContext
public InlineEventContext(NuxeoPrincipal principal, Map<String,Serializable> properties)
-
InlineEventContext
public InlineEventContext(CoreSession session, NuxeoPrincipal principal, Map<String,Serializable> properties)
-
-
Method Detail
-
newEvent
public Event newEvent(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 interfaceEventContext
- Overrides:
newEvent
in classAbstractEventContext
- Parameters:
name
- the event name- Returns:
- the event
- See Also:
EventContext.newEvent(String, int)
-
-