Package org.nuxeo.ecm.core.event.impl
Class DocumentEventContext
java.lang.Object
org.nuxeo.ecm.core.event.impl.AbstractEventContext
org.nuxeo.ecm.core.event.impl.EventContextImpl
org.nuxeo.ecm.core.event.impl.DocumentEventContext
- All Implemented Interfaces:
Serializable
,EventContext
Specialized implementation to be used with an abstract session
- Author:
- Bogdan Stefanescu, tiry
- 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
ConstructorDescriptionDocumentEventContext
(CoreSession session, NuxeoPrincipal principal, DocumentModel source) DocumentEventContext
(CoreSession session, NuxeoPrincipal principal, DocumentModel source, DocumentRef destDoc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setCategory
(String category) void
setComment
(String comment) void
setProperties
(Map<String, Serializable> properties) Replaces all properties with the given ones.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, newEvent, setProperty, setRepositoryName
-
Field Details
-
CATEGORY_PROPERTY_KEY
- See Also:
-
COMMENT_PROPERTY_KEY
- See Also:
-
-
Constructor Details
-
DocumentEventContext
-
DocumentEventContext
public DocumentEventContext(CoreSession session, NuxeoPrincipal principal, DocumentModel source, DocumentRef destDoc)
-
-
Method Details
-
getSourceDocument
-
getDestination
-
getCategory
-
setCategory
-
getComment
-
setComment
-
setProperties
Description copied from interface:EventContext
Replaces all properties with the given ones. The given map is set as is - no copy occurs.- Specified by:
setProperties
in interfaceEventContext
- Overrides:
setProperties
in classAbstractEventContext
- Parameters:
properties
- the properties to use
-