public interface SheetRowResources
| Modifier and Type | Method and Description |
|---|---|
List<Row> |
addRows(long sheetId,
List<Row> rows)
Insert rows to a sheet.
|
PartialRowUpdateResult |
addRowsAllowPartialSuccess(long sheetId,
List<Row> rows)
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.
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}
Parameters: - id : the ID of the row
Returns: None
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 operation |
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.
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 operation |
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.
|
PartialRowUpdateResult |
updateRowsAllowPartialSuccess(long sheetId,
List<Row> rows)
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 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 operationRow getRow(long sheetId, long rowId, EnumSet<RowInclusion> includes, EnumSet<ObjectExclusion> excludes) throws SmartsheetException
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
deleteRows(long, Set, boolean)
Delete a row.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/rows/{rowId}
Parameters: - id : the ID of the row
Returns: None
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
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
sheetId - the id of the sheetemail - the multi row emailSmartsheetException - the smartsheet exceptionList<Long> deleteRows(long sheetId, Set<Long> rowIds, boolean ignoreRowsNotFound) throws SmartsheetException
sheetId - 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
sheetId - the id of the sheetrows - the list of rowsSmartsheetException - the smartsheet exceptionPartialRowUpdateResult updateRowsAllowPartialSuccess(long sheetId, List<Row> rows) throws SmartsheetException
sheetId - the id of the sheetrows - the list of rowsSmartsheetException - the smartsheet exceptionCopyOrMoveRowResult moveRows(Long sheetId, EnumSet<RowMoveInclusion> includes, Boolean ignoreRowsNotFound, CopyOrMoveRowDirective moveParameters) throws SmartsheetException
sheetId - 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
sheetId - 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–2017 Smartsheet. All rights reserved.