@RestController @EnableHypermediaSupport(type=HAL) public class TaskCommentController extends Object
TaskComment related endpoints.| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<TaskCommentResource> |
createTaskComment(String taskId,
TaskCommentResource taskCommentResource) |
org.springframework.http.ResponseEntity<TaskCommentResource> |
deleteTaskComment(String taskCommentId) |
org.springframework.http.ResponseEntity<TaskCommentResource> |
getTaskComment(String taskCommentId) |
org.springframework.http.ResponseEntity<TaskCommentListResource> |
getTaskComments(String taskId) |
org.springframework.http.ResponseEntity<TaskCommentResource> |
updateTaskComment(String taskCommentId,
TaskCommentResource taskCommentResource) |
@GetMapping(path="/api/v1/tasks/comments/{taskCommentId}")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskCommentResource> getTaskComment(@PathVariable
String taskCommentId)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.task.api.exceptions.TaskNotFoundException,
pro.taskana.task.api.exceptions.TaskCommentNotFoundException,
pro.taskana.common.api.exceptions.InvalidArgumentException
@GetMapping(path="/api/v1/tasks/{taskId}/comments")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskCommentListResource> getTaskComments(@PathVariable
String taskId)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.task.api.exceptions.TaskNotFoundException
@DeleteMapping(path="/api/v1/tasks/comments/{taskCommentId}")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskCommentResource> deleteTaskComment(@PathVariable
String taskCommentId)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.task.api.exceptions.TaskNotFoundException,
pro.taskana.task.api.exceptions.TaskCommentNotFoundException,
pro.taskana.common.api.exceptions.InvalidArgumentException
@PutMapping(path="/api/v1/tasks/comments/{taskCommentId}")
@Transactional(readOnly=true,
rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskCommentResource> updateTaskComment(@PathVariable
String taskCommentId,
@RequestBody
TaskCommentResource taskCommentResource)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.task.api.exceptions.TaskNotFoundException,
pro.taskana.task.api.exceptions.TaskCommentNotFoundException,
pro.taskana.common.api.exceptions.InvalidArgumentException,
pro.taskana.common.api.exceptions.ConcurrencyException
@PostMapping(path="/api/v1/tasks/{taskId}/comments")
@Transactional(rollbackFor=java.lang.Exception.class)
public org.springframework.http.ResponseEntity<TaskCommentResource> createTaskComment(@PathVariable
String taskId,
@RequestBody
TaskCommentResource taskCommentResource)
throws pro.taskana.common.api.exceptions.NotAuthorizedException,
pro.taskana.common.api.exceptions.InvalidArgumentException,
pro.taskana.task.api.exceptions.TaskNotFoundException
Copyright © 2020. All rights reserved.