public interface SheetDiscussionResources
| Modifier and Type | Method and Description |
|---|---|
DiscussionAttachmentResources |
attachmentResources()
Creates an object of DiscussionAttachmentResources for access to discussion attachments through SheetDiscussionResources.
|
DiscussionCommentResources |
commentResources()
Creates an object of DiscussionCommentResources for access to discussion comments through SheetDiscussionResources.
|
Discussion |
createDiscussion(long sheetId,
Discussion discussion)
Create a discussion on a sheet.
|
Discussion |
createDiscussionWithAttachment(long sheetId,
Discussion discussion,
File file,
String contentType)
Create a discussion with attachments on a sheet.
|
void |
deleteDiscussion(long sheetId,
long discussionId)
Delete discussion.
|
Discussion |
getDiscussion(long sheetId,
long discussionId)
Get a discussion.
|
PagedResult<Discussion> |
listDiscussions(long sheetId,
PaginationParameters pagination,
EnumSet<DiscussionInclusion> includes)
Get all discussions
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/discussions/{discussionId}
Exceptions:
IllegalArgumentException : if any argument is null
InvalidRequestException : if there is any problem with the REST API request
AuthorizationException : if there is any problem with the REST API authorization(access token)
ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
SmartsheetRestException : if there is any other REST API related error occurred during the operation
SmartsheetException : if there is any other error occurred during the operation
|
Discussion createDiscussion(long sheetId, Discussion discussion) throws SmartsheetException
Create a discussion on a sheet.
It mirrors to the following Smartsheet REST API method:
POST /sheets/{sheetId}/discussions
sheetId - the sheet iddiscussion - the discussion objectIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationDiscussion createDiscussionWithAttachment(long sheetId, Discussion discussion, File file, String contentType) throws SmartsheetException, IOException
Create a discussion with attachments on a sheet.
It mirrors to the following Smartsheet REST API method:
POST /sheets/{sheetId}/discussions
sheetId - the sheet iddiscussion - the discussion objectfile - the file to attachcontentType - the type of fileIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationIOException - is there is with fileDiscussion getDiscussion(long sheetId, long discussionId) throws SmartsheetException
Get a discussion.
It mirrors to the following Smartsheet REST API method:
GET /sheets/{sheetId}/discussions/{discussionId}
discussionId - the discussion idsheetId - the sheet idIllegalArgumentException - if any argument is null or empty stringInvalidRequestException - if there is any problem with the REST API requestAuthorizationException - if there is any problem with the REST API authorization (access token)ResourceNotFoundException - if the resource cannot be foundServiceUnavailableException - if the REST API service is not available (possibly due to rate limiting)SmartsheetException - if there is any other error during the operationvoid deleteDiscussion(long sheetId,
long discussionId)
throws SmartsheetException
sheetId - the sheet IDdiscussionId - the discussion IDSmartsheetException - the smartsheet exceptionPagedResult<Discussion> listDiscussions(long sheetId, PaginationParameters pagination, EnumSet<DiscussionInclusion> includes) throws SmartsheetException
sheetId - the sheet IDpagination - the pagination parametersincludes - the optional paramters to includeSmartsheetException - the smartsheet exceptionDiscussionCommentResources commentResources() throws SmartsheetException
Creates an object of DiscussionCommentResources for access to discussion comments through SheetDiscussionResources.
SmartsheetException - if there is any other error during the operationDiscussionAttachmentResources attachmentResources() throws SmartsheetException
Creates an object of DiscussionAttachmentResources for access to discussion attachments through SheetDiscussionResources.
SmartsheetException - if there is any other error during the operationCopyright © 2014–2017 Smartsheet. All rights reserved.