create
ccc.rest.dto.CommentDto create(ccc.rest.dto.CommentDto comment)
throws ccc.rest.RestException
- Create a new comment in CCC.
-
- Parameters:
comment
- The comment to create.
- Returns:
- Return the newly created comment.
- Throws:
ccc.rest.RestException
- If the method fails.
retrieve
ccc.rest.dto.CommentDto retrieve(java.util.UUID commentId)
throws ccc.rest.RestException
- Retrieve the comment using its ID.
-
- Parameters:
commentId
- The comment's ID.
- Returns:
- Return the corresponding comment.
- Throws:
ccc.rest.RestException
- If the method fails.
update
void update(java.util.UUID commentId,
ccc.rest.dto.CommentDto comment)
throws ccc.rest.RestException
- Update the specified comment.
-
- Parameters:
commentId
- The comment's ID.
comment
- The updated comment.
- Throws:
ccc.rest.RestException
- If the method fails.
delete
void delete(java.util.UUID commentId)
throws ccc.rest.RestException
- Delete an existing comment.
-
- Parameters:
commentId
- The comment's ID.
- Throws:
ccc.rest.RestException
- If the method fails.
list
ccc.rest.dto.DtoCollection<ccc.rest.dto.CommentDto> list(java.util.UUID resourceId,
ccc.types.CommentStatus status,
java.lang.String sort,
ccc.types.SortOrder sortOrder,
int pageNo,
int pageSize)
throws ccc.rest.RestException
- List existing comments.
-
- Parameters:
resourceId
- Filter comments by resource. NULL will return all.
status
- Filter comments based on status. NULL will return all.
sort
- The field to sort on.
sortOrder
- The order results be sorted in.
pageNo
- The page of results to return.
pageSize
- The number of results in a page.
- Returns:
- A list of comments.
- Throws:
ccc.rest.RestException
- If the method fails.