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