public interface RowDiscussionResources
This interface provides methods to access Row Discussion resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
Discussion |
createDiscussion(long sheetId,
long rowId,
Discussion discussion)
Create discussion on a row.
|
Discussion |
createDiscussionWithAttachment(long sheetId,
long rowId,
Discussion discussion,
File file,
String contentType)
Create discussion on a row.
|
PagedResult<Discussion> |
listDiscussions(long sheetId,
long rowId,
PaginationParameters pagination,
EnumSet<DiscussionInclusion> includes)
Gets a list of all Discussions associated with the specified Row.
|
Discussion createDiscussion(long sheetId, long rowId, Discussion discussion) throws SmartsheetException
Create discussion on a row.
It mirrors to the following Smartsheet REST API method: /sheets/{sheetId}/rows/{rowId}/discussions
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 operationsheetId - the sheet IDrowId - the row IDdiscussion - the comment to add, limited to the following required attributes: textSmartsheetException - the smartsheet exceptionPagedResult<Discussion> listDiscussions(long sheetId, long rowId, PaginationParameters pagination, EnumSet<DiscussionInclusion> includes) throws SmartsheetException
Gets a list of all Discussions associated with the specified Row.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/discussions
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 operationsheetId - the sheet IDrowId - the row IDpagination - the pagination paginationincludes - the optional include parametersSmartsheetException - the smartsheet exceptionDiscussion createDiscussionWithAttachment(long sheetId, long rowId, Discussion discussion, File file, String contentType) throws SmartsheetException, IOException
Create discussion on a row.
It mirrors to the following Smartsheet REST API method: /sheets/{sheetId}/rows/{rowId}/discussions
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 operationsheetId - the sheet IDrowId - the row IDdiscussion - the comment to add, limited to the following required attributes: textfile - the file to be attachedcontentType - the type of fileSmartsheetException - the smartsheet exceptionIOException - is there is an I/O exceptionCopyright © 2014–2019 Smartsheet. All rights reserved.