public interface SheetColumnResources
This interface provides methods to access column resources that are associated to a sheet object.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
List<Column> |
addColumns(long sheetId,
List<Column> columns)
Add column to a sheet.
|
void |
deleteColumn(long sheetId,
long columnId)
Delete column.
|
Column |
getColumn(long sheetId,
long columnId,
EnumSet<ColumnInclusion> includes)
Gets the Column specified in the URL.
|
PagedResult<Column> |
listColumns(long sheetId,
EnumSet<ColumnInclusion> includes,
PaginationParameters pagination)
List columns of a given sheet.
|
Column |
updateColumn(long sheetId,
Column column)
Update a column.
|
PagedResult<Column> listColumns(long sheetId, EnumSet<ColumnInclusion> includes, PaginationParameters pagination) throws SmartsheetException
List columns of a given sheet.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns
sheetId - the sheet idincludes - list of includespagination - the object containing the pagination parametersIllegalArgumentException - 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<Column> addColumns(long sheetId, List<Column> columns) throws SmartsheetException
Add column to a sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/columns
sheetId - the sheet idcolumns - the list of column objectIllegalArgumentException - 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 deleteColumn(long sheetId,
long columnId)
throws SmartsheetException
Delete column.
It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/columns/{columnId}
sheetId - the sheet 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 operationColumn updateColumn(long sheetId, Column column) throws SmartsheetException
Update a column.
It mirrors to the following Smartsheet REST API method: PUT /sheets/{sheetId}/columns/{columnId}
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) 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 sheetIdcolumn - the column to update limited to the following attributes: index (column's new index in the sheet),
title, sheetId, type, options (optional), symbol (optional), systemColumnType (optional),
autoNumberFormat (optional)SmartsheetException - the smartsheet exceptionColumn getColumn(long sheetId, long columnId, EnumSet<ColumnInclusion> includes) throws SmartsheetException
Gets the Column specified in the URL.
It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/columns/{columnId}
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 idcolumnId - the column idincludes - list of includesSmartsheetException - the smartsheet exceptionCopyright © 2014–2019 Smartsheet. All rights reserved.