public class DocumentEventContext extends EventContextImpl
Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY_PROPERTY_KEY |
static String |
COMMENT_PROPERTY_KEY |
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
getArguments, getProperties, getProperty, getRepositoryName, hasProperty, newEvent, newEvent, setProperty, setRepositoryName
public 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)
EventContext
setProperties
in interface EventContext
setProperties
in class AbstractEventContext
properties
- the properties to useCopyright © 2015 Nuxeo SA. All rights reserved.