public class CommentNotificationEventListener extends Object implements CaseEventListener, org.kie.internal.runtime.Cacheable
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTHOR_PARAM |
static String |
CASE_ID_PARAM |
static String |
COMMENT_ID_PARAM |
static String |
COMMENT_PARAM |
static String |
CREATED_AT_PARAM |
static String |
DEFAULT_SENDER |
static String |
DEFAULT_SUBJECT |
static String |
DEFAULT_TEMPLATE |
| Constructor and Description |
|---|
CommentNotificationEventListener() |
CommentNotificationEventListener(String sender,
String template,
String subject) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPublisher(org.kie.internal.utils.NotificationPublisher publisher) |
void |
afterCaseCommentAdded(CaseCommentEvent event) |
void |
afterCaseCommentUpdated(CaseCommentEvent event) |
protected void |
buildAndPublishNotification(CaseCommentEvent event) |
protected Map<String,Object> |
buildParams(CaseCommentEvent event,
StringBuilder commentContent) |
void |
close() |
protected Set<org.kie.api.task.model.OrganizationalEntity> |
collectOrgEntitiesByRole(List<String> mentionedRoles,
CaseCommentEvent event,
StringBuilder commentContent) |
protected List<String> |
extractMentionedRoles(String commentText) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterCaseCancelled, afterCaseClosed, afterCaseCommentRemoved, afterCaseDataAdded, afterCaseDataRemoved, afterCaseDestroyed, afterCaseReopen, afterCaseRoleAssignmentAdded, afterCaseRoleAssignmentRemoved, afterCaseStarted, afterDynamicProcessAdded, afterDynamicTaskAdded, beforeCaseCancelled, beforeCaseClosed, beforeCaseCommentAdded, beforeCaseCommentRemoved, beforeCaseCommentUpdated, beforeCaseDataAdded, beforeCaseDataRemoved, beforeCaseDestroyed, beforeCaseReopen, beforeCaseRoleAssignmentAdded, beforeCaseRoleAssignmentRemoved, beforeCaseStarted, beforeDynamicProcessAdded, beforeDynamicTaskAddedpublic static final String DEFAULT_SENDER
public static final String DEFAULT_TEMPLATE
public static final String DEFAULT_SUBJECT
public static final String CASE_ID_PARAM
public static final String AUTHOR_PARAM
public static final String COMMENT_PARAM
public static final String COMMENT_ID_PARAM
public static final String CREATED_AT_PARAM
public void afterCaseCommentAdded(CaseCommentEvent event)
afterCaseCommentAdded in interface CaseEventListenerpublic void afterCaseCommentUpdated(CaseCommentEvent event)
afterCaseCommentUpdated in interface CaseEventListenerprotected void buildAndPublishNotification(CaseCommentEvent event)
protected Set<org.kie.api.task.model.OrganizationalEntity> collectOrgEntitiesByRole(List<String> mentionedRoles, CaseCommentEvent event, StringBuilder commentContent)
protected Map<String,Object> buildParams(CaseCommentEvent event, StringBuilder commentContent)
public void addPublisher(org.kie.internal.utils.NotificationPublisher publisher)
public void close()
close in interface org.kie.internal.runtime.CacheableCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.