public class DocumentEventContext extends EventContextImpl
| Modifier and Type | Field and Description |
|---|---|
static String |
CATEGORY_PROPERTY_KEY |
static String |
COMMENT_PROPERTY_KEY |
principal, sessionargs, EMPTY, properties, repositoryName| Constructor and Description |
|---|
DocumentEventContext(CoreSession session,
Principal principal,
DocumentModel source) |
DocumentEventContext(CoreSession session,
Principal principal,
DocumentModel source,
DocumentRef destDoc) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory() |
String |
getComment() |
DocumentRef |
getDestination() |
DocumentModel |
getSourceDocument() |
void |
setCategory(String category) |
void |
setComment(String comment) |
void |
setProperties(Map<String,Serializable> properties)
Replaces all properties with the given ones.
|
getCoreSession, getPrincipal, setArgs, setCoreSession, setPrincipal, updateRepositoryNamegetArguments, getProperties, getProperty, getRepositoryName, hasProperty, newEvent, newEvent, setProperty, setRepositoryNamepublic static final String CATEGORY_PROPERTY_KEY
public static final String COMMENT_PROPERTY_KEY
public DocumentEventContext(CoreSession session, Principal principal, DocumentModel source)
public DocumentEventContext(CoreSession session, Principal principal, DocumentModel source, DocumentRef destDoc)
public DocumentModel getSourceDocument()
public DocumentRef getDestination()
public String getCategory()
public void setCategory(String category)
public String getComment()
public void setComment(String comment)
public void setProperties(Map<String,Serializable> properties)
EventContextsetProperties in interface EventContextsetProperties in class AbstractEventContextproperties - the properties to useCopyright © 2016 Nuxeo SA. All rights reserved.