public interface SheetRowResources
| Modifier and Type | Method and Description |
|---|---|
List<Row> |
addRows(long sheetId,
List<Row> rows)
Insert rows to a sheet.
|
List<Row> |
addRows(long sheetId,
List<Row> rows,
EnumSet<RowInclusion> includes,
EnumSet<ObjectExclusion> excludes)
Insert rows to a sheet.
|
PartialRowUpdateResult |
addRowsAllowPartialSuccess(long sheetId,
List<Row> rows)
Insert rows to a sheet, allowing partial success.
|
PartialRowUpdateResult |
addRowsAllowPartialSuccess(long sheetId,
List<Row> rows,
EnumSet<RowInclusion> includes,
EnumSet<ObjectExclusion> excludes)
Insert rows to a sheet, allowing partial success.
|
RowAttachmentResources |
attachmentResources()
Creates an object of RowAttachmentResources.
|
RowColumnResources |
cellResources()
Creates an object of RowColumnResources.
|
CopyOrMoveRowResult |
copyRows(Long sheetId,
EnumSet<RowCopyInclusion> includes,
Boolean ignoreRowsNotFound,
CopyOrMoveRowDirective copyParameters)
Copies Row(s) from the Sheet specified in the URL to (the bottom of) another sheet.
|
void |
deleteRow(long sheetId,
long rowId)
Deprecated.
|
List<Long> |
deleteRows(long sheetId,
Set<Long> rowIds,
boolean ignoreRowsNotFound)
Deletes one or more row(s) from the Sheet specified in the URL.
|
RowDiscussionResources |
discussionResources()
Creates an object of RowDiscussionResources.
|
Row |
getRow(long sheetId,
long rowId,
EnumSet<RowInclusion> includes,
EnumSet<ObjectExclusion> excludes)
Get a row.
|
CopyOrMoveRowResult |
moveRows(Long sheetId,
EnumSet<RowMoveInclusion> includes,
Boolean ignoreRowsNotFound,
CopyOrMoveRowDirective moveParameters)
Moves Row(s) from the Sheet specified in the URL to (the bottom of) another sheet.
|
void |
sendRow(long sheetId,
long rowId,
RowEmail email)
Deprecated.
|
void |
sendRows(long sheetId,
MultiRowEmail email)
Send a row via email to the designated recipients.
|
List<Row> |
updateRows(long sheetId,
List<Row> rows)
Update rows.
|
List<Row> |
updateRows(long sheetId,
List<Row> rows,
EnumSet<RowInclusion> includes,
EnumSet<ObjectExclusion> excludes)
Update rows.
|
PartialRowUpdateResult |
updateRowsAllowPartialSuccess(long sheetId,
List<Row> rows)
Update rows, but allow partial success.
|
PartialRowUpdateResult |
updateRowsAllowPartialSuccess(long sheetId,
List<Row> rows,
EnumSet<RowInclusion> includes,
EnumSet<ObjectExclusion> excludes)
Update rows, but allow partial success.
|
List<Row> addRows(long sheetId, List<Row> rows) throws SmartsheetException
Insert rows to a sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows
sheetId - the sheet idrows - the list of rows to createIllegalArgumentException - 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> addRows(long sheetId, List<Row> rows, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException
Insert rows to a sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows
sheetId - the sheet idrows - the list of rows to createincludes - optional objects to includeexcludes - optional objects to excludeIllegalArgumentException - 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 operationPartialRowUpdateResult addRowsAllowPartialSuccess(long sheetId, List<Row> rows) throws SmartsheetException
Insert rows to a sheet, allowing partial success. If a row cannot be inserted, it will fail, while the others may succeed..
It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows
sheetId - the sheet idrows - the list of rows to createIllegalArgumentException - 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 operationPartialRowUpdateResult addRowsAllowPartialSuccess(long sheetId, List<Row> rows, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException
Insert rows to a sheet, allowing partial success. If a row cannot be inserted, it will fail, while the others may succeed..
It mirrors to the following Smartsheet REST API method: POST /sheets/{id}/rows
sheetId - the sheet idrows - the list of rows to createincludes - optional objects to includeexcludes - optional objects to excludeIllegalArgumentException - 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 operationRow getRow(long sheetId, long rowId, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException
Get a row.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}
sheetId - the id of the sheetrowId - the id of the rowincludes - optional objects to includeexcludes - optional objects to excludeIllegalArgumentException - 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 operation@Deprecated void deleteRow(long sheetId, long rowId) throws SmartsheetException
@deprecated as of API 2.0.2 release, replaced by deleteRows(long, Set, boolean)
Delete a row.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/rows/{rowId}
Exceptions: InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ResourceNotFoundException : if the resource can not be found 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 idSmartsheetException - the smartsheet exception@Deprecated void sendRow(long sheetId, long rowId, RowEmail email) throws SmartsheetException
@deprecated as of API V2.0.2, replaced by sendRows(long, MultiRowEmail)
Send a row via email to the designated recipients.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/emails
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 id of the sheetrowId - the id of the rowemail - the row emailSmartsheetException - the smartsheet exceptionvoid sendRows(long sheetId,
MultiRowEmail email)
throws SmartsheetException
Send a row via email to the designated recipients.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/emails
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 id of the sheetemail - the multi row emailSmartsheetException - the smartsheet exceptionList<Long> deleteRows(long sheetId, Set<Long> rowIds, boolean ignoreRowsNotFound) throws SmartsheetException
Deletes one or more row(s) from the Sheet specified in the URL.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/rows/{rowId}
Exceptions: InvalidRequestException : if there is any problem with the REST API request AuthorizationException : if there is any problem with the REST API authorization(access token) ResourceNotFoundException : if the resource can not be found 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 idrowIds - the row idsignoreRowsNotFound - boolean for ignoring row ids not foundSmartsheetException - the smartsheet exceptionList<Row> updateRows(long sheetId, List<Row> rows) throws SmartsheetException
Update rows.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
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 id of the sheetrows - the list of rowsSmartsheetException - the smartsheet exceptionList<Row> updateRows(long sheetId, List<Row> rows, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException
Update rows.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
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 id of the sheetrows - the list of rowsincludes - optional objects to includeexcludes - optional objects to excludeSmartsheetException - the smartsheet exceptionPartialRowUpdateResult updateRowsAllowPartialSuccess(long sheetId, List<Row> rows) throws SmartsheetException
Update rows, but allow partial success. The PartialRowUpdateResult will contain the successful rows and those that failed, with specific messages for each.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
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 id of the sheetrows - the list of rowsSmartsheetException - the smartsheet exceptionPartialRowUpdateResult updateRowsAllowPartialSuccess(long sheetId, List<Row> rows, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException
Update rows, but allow partial success. The PartialRowUpdateResult will contain the successful rows and those that failed, with specific messages for each.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/rows
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 id of the sheetrows - the list of rowsincludes - optional objects to includeexcludes - optional objects to excludeSmartsheetException - the smartsheet exceptionCopyOrMoveRowResult moveRows(Long sheetId, EnumSet<RowMoveInclusion> includes, Boolean ignoreRowsNotFound, CopyOrMoveRowDirective moveParameters) throws SmartsheetException
Moves Row(s) from the Sheet specified in the URL to (the bottom of) another sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/move
Exceptions: IllegalArgumentException : if any argument is null, or path is empty string 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 ID to moveincludes - the parameters to includeignoreRowsNotFound - optional,specifying row Ids that do not exist within the source sheetmoveParameters - CopyOrMoveRowDirective objectSmartsheetException - the smartsheet exceptionCopyOrMoveRowResult copyRows(Long sheetId, EnumSet<RowCopyInclusion> includes, Boolean ignoreRowsNotFound, CopyOrMoveRowDirective copyParameters) throws SmartsheetException
Copies Row(s) from the Sheet specified in the URL to (the bottom of) another sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/move
Exceptions: IllegalArgumentException : if any argument is null, or path is empty string 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 ID to moveincludes - the parameters to includeignoreRowsNotFound - optional,specifying row Ids that do not exist within the source sheetcopyParameters - CopyOrMoveRowDirective objectSmartsheetException - the smartsheet exceptionRowAttachmentResources attachmentResources()
Creates an object of RowAttachmentResources.
RowDiscussionResources discussionResources()
Creates an object of RowDiscussionResources.
RowColumnResources cellResources()
Creates an object of RowColumnResources.
Copyright © 2014–2019 Smartsheet. All rights reserved.