Interface RowColumnResources
-
public interface RowColumnResources
This interface provides methods to access row column resources that are associated to a sheet object.Thread Safety: Implementation of this interface must be thread safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addImageToCell(long sheetId, long rowId, long columnId, java.io.File file, java.lang.String contentType, boolean overrideValidation, java.lang.String altText)
Add an image to a cell.void
addImageToCell(long sheetId, long rowId, long columnId, java.io.InputStream inputStream, java.lang.String contentType, long contentLength, boolean overrideValidation, java.lang.String altText)
Add an image to a cell.void
addImageToCell(long sheetId, long rowId, long columnId, java.lang.String file, java.lang.String contentType)
Uploads an image to the specified cell within a sheet.void
addImageToCell(long sheetId, long rowId, long columnId, java.lang.String file, java.lang.String contentType, boolean overrideValidation, java.lang.String altText)
Uploads an image to the specified cell within a sheet.PagedResult<CellHistory>
getCellHistory(long sheetId, long rowId, long columnId, PaginationParameters pagination)
Get the cell modification history.PagedResult<CellHistory>
getCellHistory(long sheetId, long rowId, long columnId, PaginationParameters pagination, java.util.EnumSet<CellHistoryInclusion> includes, java.lang.Integer level)
Get the cell modification history.
-
-
-
Method Detail
-
getCellHistory
PagedResult<CellHistory> getCellHistory(long sheetId, long rowId, long columnId, PaginationParameters pagination) throws SmartsheetException
Get the cell modification history.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/history
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
- Parameters:
rowId
- the row idsheetId
- the sheet IdcolumnId
- the column idpagination
- the pagination parameters- Returns:
- the modification history (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
- Throws:
SmartsheetException
- the smartsheet exception
-
getCellHistory
PagedResult<CellHistory> getCellHistory(long sheetId, long rowId, long columnId, PaginationParameters pagination, java.util.EnumSet<CellHistoryInclusion> includes, java.lang.Integer level) throws SmartsheetException
Get the cell modification history.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/history
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
- Parameters:
rowId
- the row idsheetId
- the sheet IdcolumnId
- the column idpagination
- the pagination parametersincludes
- cell history inclusionlevel
- compatbility level- Returns:
- the modification history (note that if there is no such resource, this method will throw ResourceNotFoundException rather than returning null).
- Throws:
SmartsheetException
- the smartsheet exception
-
addImageToCell
void addImageToCell(long sheetId, long rowId, long columnId, java.lang.String file, java.lang.String contentType) throws java.io.FileNotFoundException, SmartsheetException
Uploads an image to the specified cell within a sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
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
- Parameters:
sheetId
- the sheet IdrowId
- the row idcolumnId
- the column idfile
- the file pathcontentType
- MIME type- Throws:
SmartsheetException
- the smartsheet exceptionjava.io.FileNotFoundException
- image file not found
-
addImageToCell
void addImageToCell(long sheetId, long rowId, long columnId, java.lang.String file, java.lang.String contentType, boolean overrideValidation, java.lang.String altText) throws java.io.FileNotFoundException, SmartsheetException
Uploads an image to the specified cell within a sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
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
- Parameters:
sheetId
- the sheet IdrowId
- the row idcolumnId
- the column idfile
- the file pathcontentType
- MIME typeoverrideValidation
- override column type validationaltText
- alternate description for the image- Throws:
SmartsheetException
- the smartsheet exceptionjava.io.FileNotFoundException
- image file not found
-
addImageToCell
void addImageToCell(long sheetId, long rowId, long columnId, java.io.File file, java.lang.String contentType, boolean overrideValidation, java.lang.String altText) throws java.io.FileNotFoundException, SmartsheetException
Add an image to a cell.It mirrors the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
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
- Parameters:
sheetId
- the sheet IdrowId
- the row idcolumnId
- the column idfile
- the File objectcontentType
- MIME typeoverrideValidation
- override column type validation if truealtText
- alternate description for the image- Throws:
SmartsheetException
- the smartsheet exceptionjava.io.FileNotFoundException
- image file not found
-
addImageToCell
void addImageToCell(long sheetId, long rowId, long columnId, java.io.InputStream inputStream, java.lang.String contentType, long contentLength, boolean overrideValidation, java.lang.String altText) throws SmartsheetException
Add an image to a cell.It mirrors the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/{rowId}/columns/{columnId}/cellimages
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
- Parameters:
sheetId
- the sheet IdrowId
- the row idcolumnId
- the column idinputStream
- the input stream of the contentscontentType
- MIME typecontentLength
- length of the input streamoverrideValidation
- override column type validation if truealtText
- alternate description for the image- Throws:
SmartsheetException
- the smartsheet exception
-
-