Package org.nuxeo.ecm.core.event.impl
Class DocumentDomainEventContext
- java.lang.Object
-
- org.nuxeo.ecm.core.event.impl.AbstractEventContext
-
- org.nuxeo.ecm.core.event.impl.EventContextImpl
-
- org.nuxeo.ecm.core.event.impl.DocumentDomainEventContext
-
- All Implemented Interfaces:
Serializable
,EventContext
public class DocumentDomainEventContext extends EventContextImpl
Event Context used for Document Domain Event. Different from DocumentEventContext because lighter and targeted only for domain event.- Since:
- 2021.44
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Document
doc
protected String
principal
-
Fields inherited from class org.nuxeo.ecm.core.event.impl.EventContextImpl
session
-
Fields inherited from class org.nuxeo.ecm.core.event.impl.AbstractEventContext
args, EMPTY, properties, repositoryName
-
-
Constructor Summary
Constructors Constructor Description DocumentDomainEventContext(NuxeoPrincipal principal, Document doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Document
getDoc()
Event
newEvent(String name)
Creates a new event in that context given the event name.void
setDoc(Document doc)
-
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
-
DocumentDomainEventContext
public DocumentDomainEventContext(NuxeoPrincipal principal, Document doc)
-
-
Method Detail
-
getDoc
public Document getDoc()
-
setDoc
public void setDoc(Document doc)
-
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)
-
-