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
Minimal eventContext implementation that can be used for events that are not bound to a CoreSession.
- Author:
- Thierry Delprat
- See Also:
-
Field Summary
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
ConstructorDescriptionInlineEventContext
(CoreSession session, NuxeoPrincipal principal, Map<String, Serializable> properties) InlineEventContext
(NuxeoPrincipal principal, Map<String, Serializable> properties) -
Method Summary
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
-
Field Details
-
boundToCoreSession
protected boolean boundToCoreSession
-
-
Constructor Details
-
InlineEventContext
-
InlineEventContext
public InlineEventContext(CoreSession session, NuxeoPrincipal principal, Map<String, Serializable> properties)
-
-
Method Details
-
newEvent
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:
-