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
public class DocumentEventContext
- extends EventContextImpl
Specialized implementation to be used with an abstract session
- Author:
- Bogdan Stefanescu, tiry
- See Also:
- Serialized Form
CATEGORY_PROPERTY_KEY
public static final String CATEGORY_PROPERTY_KEY
- See Also:
- Constant Field Values
COMMENT_PROPERTY_KEY
public static final String COMMENT_PROPERTY_KEY
- See Also:
- Constant Field Values
DocumentEventContext
public DocumentEventContext(CoreSession session,
Principal principal,
DocumentModel source)
DocumentEventContext
public DocumentEventContext(CoreSession session,
Principal principal,
DocumentModel source,
DocumentRef destDoc)
getSourceDocument
public DocumentModel getSourceDocument()
getDestination
public DocumentRef getDestination()
getCategory
public String getCategory()
setCategory
public void setCategory(String category)
getComment
public String getComment()
setComment
public void setComment(String comment)
setProperties
public void setProperties(Map<String,Serializable> properties)
- 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 interface EventContext
- Overrides:
setProperties
in class AbstractEventContext
- Parameters:
properties
- the properties to use
Copyright © 2011 Nuxeo SAS. All Rights Reserved.