Package org.nuxeo.ecm.core.event.impl
Class BlobEventContext
- java.lang.Object
-
- org.nuxeo.ecm.core.event.impl.AbstractEventContext
-
- org.nuxeo.ecm.core.event.impl.EventContextImpl
-
- org.nuxeo.ecm.core.event.impl.BlobEventContext
-
- All Implemented Interfaces:
Serializable,EventContext
public class BlobEventContext extends EventContextImpl
- Since:
- 2023
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ManagedBlobblobprotected StringdocIdprotected Stringxpath-
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 BlobEventContext(String repositoryName, ManagedBlob managedBlob)BlobEventContext(NuxeoPrincipal principal, String repositoryName, String docId, String xpath, ManagedBlob blob)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedBlobgetBlob()StringgetDocId()StringgetXpath()EventnewEvent(String name)Creates a new event in that context given the event name.voidsetDocId(String docId)-
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 Detail
-
docId
protected String docId
-
xpath
protected String xpath
-
blob
protected ManagedBlob blob
-
-
Constructor Detail
-
BlobEventContext
public BlobEventContext(NuxeoPrincipal principal, String repositoryName, String docId, String xpath, ManagedBlob blob)
-
BlobEventContext
public BlobEventContext(String repositoryName, ManagedBlob managedBlob)
-
-
Method Detail
-
getBlob
public ManagedBlob getBlob()
-
getDocId
public String getDocId()
-
getXpath
public String getXpath()
-
newEvent
public Event newEvent(String name)
Description copied from interface:EventContextCreates a new event in that context given the event name. The default flags for the event will be used.- Specified by:
newEventin interfaceEventContext- Overrides:
newEventin classAbstractEventContext- Parameters:
name- the event name- Returns:
- the event
- See Also:
EventContext.newEvent(String, int)
-
setDocId
public void setDocId(String docId)
-
-