public interface SheetResources
This interface provides methods to access Sheet resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
SheetAttachmentResources |
attachmentResources()
Return the AttachmentResources object that provides access to attachment resources associated with
Sheet resources.
|
SheetColumnResources |
columnResources()
Return the SheetColumnResources object that provides access to Column resources associated with Sheet resources.
|
SheetCommentResources |
commentResources()
Return the SheetCommentResources object that provides access to discussion resources associated with
Sheet resources.
|
Sheet |
copySheet(long sheetId,
ContainerDestination containerDestination,
EnumSet<SheetCopyInclusion> includes)
Creates a copy of the specified sheet.
|
Sheet |
createSheet(Sheet sheet)
Create a sheet in default "Sheets" collection.
|
Sheet |
createSheetFromTemplate(Sheet sheet,
EnumSet<SheetTemplateInclusion> includes)
Create a sheet (from existing sheet or template) in default "Sheets" collection.
|
Sheet |
createSheetInFolder(long folderId,
Sheet sheet)
Create a sheet in given folder.
|
Sheet |
createSheetInFolderFromTemplate(long folderID,
Sheet sheet,
EnumSet<SheetTemplateInclusion> includes)
Create a sheet (from existing sheet or template) in given folder.
|
Sheet |
createSheetInWorkspace(long workspaceId,
Sheet sheet)
Create a sheet in given workspace.
|
Sheet |
createSheetInWorkspaceFromTemplate(long workspaceId,
Sheet sheet,
EnumSet<SheetTemplateInclusion> includes)
Create a sheet (from existing sheet or template) in given workspace.
|
UpdateRequest |
createUpdateRequest(long sheetId,
MultiRowEmail email)
Deprecated.
|
void |
deleteSheet(long id)
Delete a sheet.
|
SheetDiscussionResources |
discussionResources()
Return the SheetDiscussionResources object that provides access to discussion resources associated with
Sheet resources.
|
SheetPublish |
getPublishStatus(long id)
Get the status of the Publish settings of the sheet, including the URLs of any enabled publishings.
|
Sheet |
getSheet(long id,
EnumSet<SheetInclusion> includes,
EnumSet<ObjectExclusion> excludes,
Set<Long> rowIds,
Set<Integer> rowNumbers,
Set<Long> columnIds,
Integer pageSize,
Integer page)
Get a sheet.
|
void |
getSheetAsCSV(long id,
OutputStream outputStream)
Get a sheet as an Excel file.
|
void |
getSheetAsExcel(long id,
OutputStream outputStream)
Get a sheet as an Excel file.
|
void |
getSheetAsPDF(long id,
OutputStream outputStream,
PaperSize paperSize)
Get a sheet as a PDF file.
|
int |
getSheetVersion(long id)
Get a sheet version.
|
PagedResult<Sheet> |
listOrganizationSheets(PaginationParameters parameters)
Deprecated.
|
PagedResult<Sheet> |
listSheets(EnumSet<SourceInclusion> includes,
PaginationParameters pagination)
Deprecated.
|
PagedResult<Sheet> |
listSheets(EnumSet<SourceInclusion> includes,
PaginationParameters pagination,
Date modifiedSince)
List all sheets.
|
Sheet |
moveSheet(long sheetId,
ContainerDestination containerDestination)
Moves the specified Sheet to another location.
|
SheetRowResources |
rowResources()
Return the SheetRowResources object that provides access to Row resources associated with Sheet resources.
|
void |
sendSheet(long id,
SheetEmail email)
Send a sheet as a PDF attachment via email to the designated recipients.
|
ShareResources |
shareResources()
Return the ShareResources object that provides access to Share resources associated with Sheet resources.
|
SheetPublish |
updatePublishStatus(long id,
SheetPublish publish)
Sets the publish status of a sheet and returns the new status, including the URLs of any enabled publishings.
|
SheetUpdateRequestResources |
updateRequestResources()
Return the SheetUpdateRequestResources object that provides access to update request resources
associated with Sheet resources.
|
Sheet |
updateSheet(Sheet sheet)
Update a sheet.
|
PagedResult<Sheet> listSheets(EnumSet<SourceInclusion> includes, PaginationParameters pagination, Date modifiedSince) throws SmartsheetException
List all sheets.
It mirrors to the following Smartsheet REST API method: GET /sheets
includes - the source inclusionpagination - the object containing the pagination parametersmodifiedSince - restrict results to sheets modified on or after this dateIllegalArgumentException - 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 PagedResult<Sheet> listSheets(EnumSet<SourceInclusion> includes, PaginationParameters pagination) throws SmartsheetException
List all sheets.
It mirrors to the following Smartsheet REST API method: GET /sheets
includes - the source inclusionpagination - 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 operation@Deprecated PagedResult<Sheet> listOrganizationSheets(PaginationParameters parameters) throws SmartsheetException
List all sheets in the organization.
It mirrors to the following Smartsheet REST API method: GET /users/sheets
parameters - 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 operationSheet getSheet(long id, EnumSet<SheetInclusion> includes, EnumSet<ObjectExclusion> excludes, Set<Long> rowIds, Set<Integer> rowNumbers, Set<Long> columnIds, Integer pageSize, Integer page) throws SmartsheetException
Get a sheet.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id}
id - the id of the sheetincludes - used to specify the optional objects to include.columnIds - the column idsexcludes - the exclude parameterspage - the page numberpageSize - the page sizerowIds - the row idsrowNumbers - the row numbersIllegalArgumentException - 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 getSheetAsExcel(long id,
OutputStream outputStream)
throws SmartsheetException
Get a sheet as an Excel file.
It mirrors to the following Smartsheet REST API method:
GET /sheet/{id} with "application/vnd.ms-excel" Accept HTTP header
id - the id of the sheetoutputStream - the output stream to which the Excel file will be written.IllegalArgumentException - 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 getSheetAsCSV(long id,
OutputStream outputStream)
throws SmartsheetException
Get a sheet as an Excel file.
It mirrors to the following Smartsheet REST API method:
GET /sheet/{id} with "application/vnd.ms-excel" Accept HTTP header
id - the id of the sheetoutputStream - the output stream to which the Excel file will be written.IllegalArgumentException - 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 getSheetAsPDF(long id,
OutputStream outputStream,
PaperSize paperSize)
throws SmartsheetException
Get a sheet as a PDF file.
It mirrors to the following Smartsheet REST API method:
GET /sheet/{id} with "application/pdf" Accept HTTP header
id - the id of the sheetoutputStream - the output stream to which the PDF file will be written.paperSize - the paper sizeIllegalArgumentException - 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 operationSheet createSheet(Sheet sheet) throws SmartsheetException
Create a sheet in default "Sheets" collection.
It mirrors to the following Smartsheet REST API method:
POST /sheets
sheet - the sheet to createdIllegalArgumentException - 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 operationSheet createSheetFromTemplate(Sheet sheet, EnumSet<SheetTemplateInclusion> includes) throws SmartsheetException
Create a sheet (from existing sheet or template) in default "Sheets" collection.
It mirrors to the following Smartsheet REST API method: POST /sheets
sheet - the sheet to createincludes - used to specify the optional objects to include.IllegalArgumentException - 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 operationSheet createSheetInFolder(long folderId, Sheet sheet) throws SmartsheetException
Create a sheet in given folder.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets
folderId - the folder idsheet - the sheet 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 operationSheet createSheetInFolderFromTemplate(long folderID, Sheet sheet, EnumSet<SheetTemplateInclusion> includes) throws SmartsheetException
Create a sheet (from existing sheet or template) in given folder.
It mirrors to the following Smartsheet REST API method: POST /folders/{folderId}/sheets
folderID - the folder idsheet - the sheet to createincludes - used to specify the optional objects to include.IllegalArgumentException - 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 operationSheet createSheetInWorkspace(long workspaceId, Sheet sheet) throws SmartsheetException
Create a sheet in given workspace.
It mirrors to the following Smartsheet REST API method: POST /workspace/{workspaceId}/sheets
workspaceId - the workspace idsheet - the sheet 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 operationSheet createSheetInWorkspaceFromTemplate(long workspaceId, Sheet sheet, EnumSet<SheetTemplateInclusion> includes) throws SmartsheetException
Create a sheet (from existing sheet or template) in given workspace.
It mirrors to the following Smartsheet REST API method: POST /workspaces/{workspaceId}/sheets
workspaceId - the workspace idsheet - the sheet to createincludes - used to specify the optional objects to includeIllegalArgumentException - 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 deleteSheet(long id)
throws SmartsheetException
Delete a sheet.
It mirrors to the following Smartsheet REST API method: DELETE /sheet{id}
Parameters: - id : the ID of the sheet Returns: Noneid - the 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 operationSheet updateSheet(Sheet sheet) throws SmartsheetException
Update a sheet.
It mirrors to the following Smartsheet REST API method: PUT /sheet/{id}
sheet - the sheet to updateIllegalArgumentException - 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 operationint getSheetVersion(long id)
throws SmartsheetException
Get a sheet version.
It mirrors to the following Smartsheet REST API method: GET /sheet/{id}/version
id - the 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 operationvoid sendSheet(long id,
SheetEmail email)
throws SmartsheetException
Send a sheet as a PDF attachment via email to the designated recipients.
It mirrors to the following Smartsheet REST API method: POST /sheet/{sheetId}/emails
id - the idemail - the emailIllegalArgumentException - 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 operationShareResources shareResources()
Return the ShareResources object that provides access to Share resources associated with Sheet resources.
SheetRowResources rowResources()
Return the SheetRowResources object that provides access to Row resources associated with Sheet resources.
SheetColumnResources columnResources()
Return the SheetColumnResources object that provides access to Column resources associated with Sheet resources.
SheetAttachmentResources attachmentResources()
Return the AttachmentResources object that provides access to attachment resources associated with Sheet resources.
SheetDiscussionResources discussionResources()
Return the SheetDiscussionResources object that provides access to discussion resources associated with Sheet resources.
SheetCommentResources commentResources()
Return the SheetCommentResources object that provides access to discussion resources associated with Sheet resources.
SheetUpdateRequestResources updateRequestResources()
Return the SheetUpdateRequestResources object that provides access to update request resources associated with Sheet resources.
SheetPublish getPublishStatus(long id) throws SmartsheetException
Get the status of the Publish settings of the sheet, including the URLs of any enabled publishings.
It mirrors to the following Smartsheet REST API method: GET /sheet/{sheetId}/publish
id - the 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 operationSheetPublish updatePublishStatus(long id, SheetPublish publish) throws SmartsheetException
Sets the publish status of a sheet and returns the new status, including the URLs of any enabled publishings.
It mirrors to the following Smartsheet REST API method: PUT /sheet/{sheetId}/publish
id - the idpublish - the SheetPublish object limited.IllegalArgumentException - 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 operationSheet copySheet(long sheetId, ContainerDestination containerDestination, EnumSet<SheetCopyInclusion> includes) throws SmartsheetException
sheetId - the sheet idcontainerDestination - describes the destination containerincludes - optional parameters to includeSmartsheetException - the smartsheet exceptionSheet moveSheet(long sheetId, ContainerDestination containerDestination) throws SmartsheetException
sheetId - the folder idcontainerDestination - describes the destination containerSmartsheetException - the smartsheet exception@Deprecated UpdateRequest createUpdateRequest(long sheetId, MultiRowEmail email) throws SmartsheetException
sheetId - the sheet idemail - the emailSmartsheetException - the smartsheet exceptionCopyright © 2014–2017 Smartsheet. All rights reserved.