public class AccountReportImpl extends BaseImpl<AccountReport,AccountReportReader,AccountReportWriter> implements AccountReportReader, AccountReportWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
AccountReportImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
Optional<AccountReport> |
deleteReport(String accountId,
String report,
Integer reportId)
Delete a report.
|
List<AccountReport> |
listReports(String accountId,
String report)
Generate a list of previously run reports for a given report type.
|
protected Type |
listType() |
protected Class<AccountReport> |
objectType() |
Optional<AccountReport> |
reportStatus(String accountId,
String report,
Integer id)
Pull back the status of a given report.
|
Optional<AccountReport> |
startReport(AccountReportOptions options)
Start a new report, specifying a set of options to run with.
|
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic AccountReportImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public List<AccountReport> listReports(String accountId, String report) throws IOException
AccountReportReaderlistReports in interface AccountReportReaderaccountId - the account ID to run the reports againstreport - the specific name of the report (e.g. sis_export_csv)IOException - When there is an error communicating with Canvaspublic Optional<AccountReport> reportStatus(String accountId, String report, Integer id) throws IOException
AccountReportReaderreportStatus in interface AccountReportReaderaccountId - the account ID to run the reports againstreport - the specific name of the report (e.g. sis_export_csv)id - the ID of the running reportIOException - When there is an error communicating with Canvaspublic Optional<AccountReport> startReport(AccountReportOptions options) throws IOException
AccountReportWriterNote that the options used vary depending on the report you wish to start.
startReport in interface AccountReportWriteroptions - options that should be passed to start the reportOptional<AccountReport> which contains a reference to the generated reportIOException - When there is an error communicating with CanvasAccountReportOptionspublic Optional<AccountReport> deleteReport(String accountId, String report, Integer reportId) throws IOException
AccountReportWriterdeleteReport in interface AccountReportWriteraccountId - the account id used to generate the reportreport - the name of the reportreportId - the ID of the reportOptional<AccountReport> which contains a reference to the deleted reportIOException - When there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<AccountReport,AccountReportReader,AccountReportWriter>protected Class<AccountReport> objectType()
objectType in class BaseImpl<AccountReport,AccountReportReader,AccountReportWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.