Class TaskCommentApi
java.lang.Object
org.camunda.community.rest.client.api.TaskCommentApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-06-04T13:43:01.451833574Z[Etc/UTC]")
public class TaskCommentApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateComment(String id, CommentDto commentDto) Create Creates a comment for a task by id.createComment(String id, CommentDto commentDto, Map<String, String> additionalHeaders) Create Creates a comment for a task by id.getComment(String id, String commentId) Get Retrieves a task comment by task id and comment id.Get Retrieves a task comment by task id and comment id.getComments(String id) Get List Gets the comments for a task by id.getComments(String id, Map<String, String> additionalHeaders) Get List Gets the comments for a task by id.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
TaskCommentApi
public TaskCommentApi() -
TaskCommentApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createComment
Create Creates a comment for a task by id.- Parameters:
id- The id of the task to add the comment to. (required)commentDto- **Note:** Only the `message` and `processInstanceId` properties will be used. Every other property passed to this endpoint will be ignored. (optional)- Returns:
- CommentDto
- Throws:
ApiException- if fails to make API call
-
createComment
public CommentDto createComment(String id, CommentDto commentDto, Map<String, String> additionalHeaders) throws ApiExceptionCreate Creates a comment for a task by id.- Parameters:
id- The id of the task to add the comment to. (required)commentDto- **Note:** Only the `message` and `processInstanceId` properties will be used. Every other property passed to this endpoint will be ignored. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- CommentDto
- Throws:
ApiException- if fails to make API call
-
getComment
Get Retrieves a task comment by task id and comment id.- Parameters:
id- The id of the task. (required)commentId- The id of the comment to be retrieved. (required)- Returns:
- CommentDto
- Throws:
ApiException- if fails to make API call
-
getComment
public CommentDto getComment(String id, String commentId, Map<String, String> additionalHeaders) throws ApiExceptionGet Retrieves a task comment by task id and comment id.- Parameters:
id- The id of the task. (required)commentId- The id of the comment to be retrieved. (required)additionalHeaders- additionalHeaders for this call- Returns:
- CommentDto
- Throws:
ApiException- if fails to make API call
-
getComments
Get List Gets the comments for a task by id.- Parameters:
id- The id of the task to retrieve the comments for. (required)- Returns:
- List<CommentDto>
- Throws:
ApiException- if fails to make API call
-
getComments
public List<CommentDto> getComments(String id, Map<String, String> additionalHeaders) throws ApiExceptionGet List Gets the comments for a task by id.- Parameters:
id- The id of the task to retrieve the comments for. (required)additionalHeaders- additionalHeaders for this call- Returns:
- List<CommentDto>
- Throws:
ApiException- if fails to make API call
-