public interface ReportResources
This interface provides methods to access Report resources.
Thread Safety: Implementation of this interface must be thread safe.
| Modifier and Type | Method and Description |
|---|---|
ReportPublish |
getPublishStatus(long id)
Get the publish status of a report.
|
Report |
getReport(long reportId,
EnumSet<ReportInclusion> includes,
Integer pageSize,
Integer page)
Get a report.
|
void |
getReportAsCsv(long id,
OutputStream outputStream)
Get a Report as an csv file.
|
void |
getReportAsExcel(long id,
OutputStream outputStream)
Get a Report as an excel file.
|
PagedResult<Report> |
listReports(PaginationParameters parameters)
Deprecated.
|
PagedResult<Report> |
listReports(PaginationParameters parameters,
Date modifiedSince)
List all reports.
|
void |
sendReport(long reportId,
SheetEmail email)
Send a sheet as a PDF attachment via Email To the designated recipients.
|
ShareResources |
shareResources()
Creates an object of ShareResources.
|
ReportPublish |
updatePublishStatus(long id,
ReportPublish reportPublish)
Sets the publish status of a report and returns the new status, including the URLs of any
enabled publishing.
|
Report getReport(long reportId, EnumSet<ReportInclusion> includes, Integer pageSize, Integer page) throws SmartsheetException
Get a report.
It mirrors to the following Smartsheet REST API method:
GET /report/{reportId}
reportId - the reportId of the reportincludes - used To specify the optional objects to include.pageSize - page size parameter for paginationpage - page parameter for paginationIllegalArgumentException - 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 sendReport(long reportId,
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 /reports/{reportId}/emails
reportId - the reportId of the reportemail - email of designated recipient.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 operationPagedResult<Report> listReports(PaginationParameters parameters, Date modifiedSince) throws SmartsheetException
parameters - pagination parameters for paging resultmodifiedSince - restrict results to sheets modified on or after this dateSmartsheetException - the smartsheet exception@Deprecated PagedResult<Report> listReports(PaginationParameters parameters) throws SmartsheetException
parameters - pagination parameters for paging resultSmartsheetException - the smartsheet exceptionvoid getReportAsExcel(long id,
OutputStream outputStream)
throws SmartsheetException
id - the idoutputStream - the OutputStream to which the Excel file will be writtenSmartsheetException - the smartsheet exceptionvoid getReportAsCsv(long id,
OutputStream outputStream)
throws SmartsheetException
id - the idoutputStream - the OutputStream to which the Excel file will be writtenSmartsheetException - the smartsheet exceptionReportPublish getPublishStatus(long id) throws SmartsheetException
Get the publish status of a report.
It mirrors to the following Smartsheet REST API method: GET /reports/{id}/publish
id - the ID of the reportIllegalArgumentException - 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 operationReportPublish updatePublishStatus(long id, ReportPublish reportPublish) throws SmartsheetException
Sets the publish status of a report and returns the new status, including the URLs of any enabled publishing.
It mirrors to the following Smartsheet REST API method: PUT /reports/{id}/publish
id - the ID of the reportreportPublish - the ReportPublish 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 operationShareResources shareResources()
Creates an object of ShareResources.
Copyright © 2014–2017 Smartsheet. All rights reserved.