@Service public class CommentService extends Object
Constructor and Description |
---|
CommentService() |
Modifier and Type | Method and Description |
---|---|
Long |
countCommentsForProcessInstance(String processInstanceId) |
Long |
countCommentsForTask(String taskId) |
com.activiti.domain.runtime.Comment |
createComment(String message,
com.activiti.domain.idm.User createdBy,
String processInstanceId) |
com.activiti.domain.runtime.Comment |
createComment(String message,
com.activiti.domain.idm.User createdBy,
String taskId,
String processInstanceId) |
void |
deleteAllCommentsForProcessInstance(String processInstanceId)
Deletes all comments related to the given process instance.
|
void |
deleteComment(com.activiti.domain.runtime.Comment comment) |
List<com.activiti.domain.runtime.Comment> |
getCommentsForProcessInstance(String processInstanceId,
boolean latestFirst) |
List<com.activiti.domain.runtime.Comment> |
getCommentsForTask(String taskId,
boolean latestFirst) |
public Long countCommentsForProcessInstance(String processInstanceId)
public List<com.activiti.domain.runtime.Comment> getCommentsForTask(String taskId, boolean latestFirst)
public List<com.activiti.domain.runtime.Comment> getCommentsForProcessInstance(String processInstanceId, boolean latestFirst)
public com.activiti.domain.runtime.Comment createComment(String message, com.activiti.domain.idm.User createdBy, String processInstanceId)
public com.activiti.domain.runtime.Comment createComment(String message, com.activiti.domain.idm.User createdBy, String taskId, String processInstanceId)
public void deleteComment(com.activiti.domain.runtime.Comment comment)
@Transactional public void deleteAllCommentsForProcessInstance(String processInstanceId)
Copyright © 2014–2015 Alfresco. All rights reserved.