@RestController public class CommentsResource extends AbstractCommentsResource
| Constructor and Description |
|---|
CommentsResource() |
| Modifier and Type | Method and Description |
|---|---|
CommentRepresentation |
addProcessInstanceComment(CommentRepresentation commentRequest,
String processInstanceId) |
CommentRepresentation |
addTaskComment(CommentRepresentation commentRequest,
String taskId) |
ResultListDataRepresentation |
getProcessInstanceComments(String processInstanceId,
Boolean latestFirst) |
ResultListDataRepresentation |
getTaskComments(String taskId,
Boolean latestFirst) |
checkReadPermissionOnProcessInstance, checkReadPermissionOnTask@RequestMapping(value="/rest/tasks/{taskId}/comments",
method=GET,
produces="application/json")
public ResultListDataRepresentation getTaskComments(@PathVariable(value="taskId")
String taskId,
@RequestParam(value="latestFirst",required=false)
Boolean latestFirst)
getTaskComments in class AbstractCommentsResource@RequestMapping(value="/rest/tasks/{taskId}/comments",
method=POST,
produces="application/json")
public CommentRepresentation addTaskComment(@RequestBody
CommentRepresentation commentRequest,
@PathVariable(value="taskId")
String taskId)
addTaskComment in class AbstractCommentsResource@RequestMapping(value="/rest/process-instances/{processInstanceId}/comments",
method=GET,
produces="application/json")
public ResultListDataRepresentation getProcessInstanceComments(@PathVariable(value="processInstanceId")
String processInstanceId,
@RequestParam(value="latestFirst",required=false)
Boolean latestFirst)
getProcessInstanceComments in class AbstractCommentsResource@RequestMapping(value="/rest/process-instances/{processInstanceId}/comments",
method=POST,
produces="application/json")
public CommentRepresentation addProcessInstanceComment(@RequestBody
CommentRepresentation commentRequest,
@PathVariable(value="processInstanceId")
String processInstanceId)
addProcessInstanceComment in class AbstractCommentsResourceCopyright © 2017 Alfresco. All rights reserved.