public interface IBoxCommentsManager extends IBoxResourceManager
Modifier and Type | Method and Description |
---|---|
BoxComment |
addComment(BoxCommentRequestObject requestObject)
Add a comment to an item.
|
BoxComment |
addComment(java.lang.String commentedItemId,
IBoxType commentedItemType,
java.lang.String message) |
void |
deleteComment(java.lang.String commentId,
BoxDefaultRequestObject requestObject)
Delete a comment.
|
BoxComment |
getComment(java.lang.String commentId,
BoxDefaultRequestObject requestObject)
Get a comment, given a comment id.
|
BoxComment |
updateComment(java.lang.String commentId,
BoxCommentRequestObject requestObject)
Update a comment.
|
BoxComment addComment(BoxCommentRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
requestObject
- comment request object.BoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxComment addComment(java.lang.String commentedItemId, IBoxType commentedItemType, java.lang.String message) throws BoxRestException, BoxServerException, AuthFatalFailureException
BoxComment getComment(java.lang.String commentId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
commentId
- id of the commentrequestObject
- object that goes into request.BoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.BoxComment updateComment(java.lang.String commentId, BoxCommentRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
commentId
- id of the commentrequestObject
- comment request object.sBoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.void deleteComment(java.lang.String commentId, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException
commentId
- id of the commentrequestObject
- object that goes into request.BoxRestException
- See BoxRestException
for more info.BoxServerException
- See com.box.restclientv2.exceptions.BoxServerException
for more info.AuthFatalFailureException
- See com.box.restclientv2.exceptions.AuthFatalFailureException
for more info.