Class BoxCommentsManager
java.lang.Object
org.apache.camel.component.box.api.BoxCommentsManager
Provides operations to manage Box comments.
-
Constructor Summary
ConstructorsConstructorDescriptionBoxCommentsManager(com.box.sdk.BoxAPIConnection boxConnection) Create comments manager to manage the comments of Box connection's authenticated user. -
Method Summary
Modifier and TypeMethodDescriptioncom.box.sdk.BoxFileaddFileComment(String fileId, String message) Add comment to file.com.box.sdk.BoxCommentchangeCommentMessage(String commentId, String message) Change comment message.voiddeleteComment(String commentId) Delete comment.com.box.sdk.BoxComment.InfogetCommentInfo(String commentId) Get comment information.List<com.box.sdk.BoxComment.Info> getFileComments(String fileId) Get a list of any comments on this file.com.box.sdk.BoxCommentreplyToComment(String commentId, String message) Reply to a comment.
-
Constructor Details
-
BoxCommentsManager
public BoxCommentsManager(com.box.sdk.BoxAPIConnection boxConnection) Create comments manager to manage the comments of Box connection's authenticated user.- Parameters:
boxConnection- - Box connection to authenticated user account.
-
-
Method Details
-
addFileComment
Add comment to file.- Parameters:
fileId- - the id of file.message- - the comment's message.- Returns:
- The commented file.
-
getFileComments
Get a list of any comments on this file.- Parameters:
fileId- - the id of file.- Returns:
- The list of comments on this file.
-
getCommentInfo
Get comment information.- Parameters:
commentId- - the id of comment.- Returns:
- The comment information.
-
replyToComment
Reply to a comment.- Parameters:
commentId- - the id of comment to reply to.message- - the message for the reply.- Returns:
- The newly created reply comment.
-
changeCommentMessage
Change comment message.- Parameters:
commentId- - the id of comment to change.message- - the new message for the comment.- Returns:
- The comment with changed message.
-
deleteComment
Delete comment.- Parameters:
commentId- - the id of comment to delete.
-