public interface RowResources
This interface provides methods to access Row resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
AssociatedAttachmentResources |
attachments()
Return the AssociatedAttachmentResources object that provides access to attachment resources associated with Row
resources.
|
void |
deleteRow(long id)
Delete a row.
|
AssociatedDiscussionResources |
discussions()
Return the AssociatedDiscussionResources object that provides access to discussion resources associated with
Row resources.
|
List<CellHistory> |
getCellHistory(long rowId,
long columnId)
Get the cell modification history.
|
Row |
getRow(long id,
EnumSet<ObjectInclusion> includes)
Get a row.
|
List<Row> |
moveRow(long id,
RowWrapper rowWrapper)
Move a row.
|
void |
sendRow(long id,
RowEmail email)
Send a row via email to the designated recipients.
|
List<Cell> |
updateCells(long rowId,
List<Cell> cells)
Update the values of the Cells in a Row.
|
Row getRow(long id, EnumSet<ObjectInclusion> includes) throws SmartsheetException
Get a row.
It mirrors to the following Smartsheet REST API method: GET /row/{id}
id - the idincludes - used to specify the optional objects to include.IllegalArgumentException - 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 operationList<Row> moveRow(long id, RowWrapper rowWrapper) throws SmartsheetException
Move a row.
It mirrors to the following Smartsheet REST API method: PUT /row/{id}
id - the id of the row to moverowWrapper - the row wrapper that specifies where to move the row.IllegalArgumentException - 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 deleteRow(long id)
throws SmartsheetException
Delete a row.
It mirrors to the following Smartsheet REST API method: DELETE /row{id}
id - the id of the rowIllegalArgumentException - 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 sendRow(long id,
RowEmail email)
throws SmartsheetException
Send a row via email to the designated recipients.
It mirrors to the following Smartsheet REST API method: POST /row/{id}/emails
id - the idemail - the emailIllegalArgumentException - 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 operationList<Cell> updateCells(long rowId, List<Cell> cells) throws SmartsheetException
Update the values of the Cells in a Row.
It mirrors to the following Smartsheet REST API method: PUT /row/{id}/cells
rowId - the row idcells - the cells to updateIllegalArgumentException - 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 operationList<CellHistory> getCellHistory(long rowId, long columnId) throws SmartsheetException
Get the cell modification history.
It mirrors to the following Smartsheet REST API method: GET /row/{rowId}/column/{columnId}/history
rowId - the row idcolumnId - the column 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 operationAssociatedAttachmentResources attachments()
Return the AssociatedAttachmentResources object that provides access to attachment resources associated with Row resources.
AssociatedDiscussionResources discussions()
Return the AssociatedDiscussionResources object that provides access to discussion resources associated with Row resources.
Copyright © 2014–2019 Smartsheet. All rights reserved.