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 id
        sheetId - the sheet Id
        columnId - the column id
        pagination - 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 id
        sheetId - the sheet Id
        columnId - the column id
        pagination - the pagination parameters
        includes - cell history inclusion
        level - 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 Id
        rowId - the row id
        columnId - the column id
        file - the file path
        contentType - MIME type
        Throws:
        SmartsheetException - the smartsheet exception
        java.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 Id
        rowId - the row id
        columnId - the column id
        file - the file path
        contentType - MIME type
        overrideValidation - override column type validation
        altText - alternate description for the image
        Throws:
        SmartsheetException - the smartsheet exception
        java.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 Id
        rowId - the row id
        columnId - the column id
        file - the File object
        contentType - MIME type
        overrideValidation - override column type validation if true
        altText - alternate description for the image
        Throws:
        SmartsheetException - the smartsheet exception
        java.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 Id
        rowId - the row id
        columnId - the column id
        inputStream - the input stream of the contents
        contentType - MIME type
        contentLength - length of the input stream
        overrideValidation - override column type validation if true
        altText - alternate description for the image
        Throws:
        SmartsheetException - the smartsheet exception