public class ExternalToolImpl extends BaseImpl<ExternalTool,ExternalToolReader,ExternalToolWriter> implements ExternalToolReader, ExternalToolWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
ExternalToolImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ExternalTool> |
createExternalToolInAccount(String accountId,
ExternalTool tool)
Create an External tool in the specified Canvas account
|
Optional<ExternalTool> |
createExternalToolInCourse(String courseId,
ExternalTool tool)
Create an External tool in the specified Canvas course
|
Optional<ExternalTool> |
deleteExternalToolInAccount(String accountId,
Integer toolId)
Delete an external tool from an account.
|
Optional<ExternalTool> |
deleteExternalToolInCourse(String courseId,
Integer toolId)
Delete an external tool from a course.
|
Optional<ExternalTool> |
editExternalToolInAccount(String accountId,
ExternalTool tool)
Modify the settings of an external tool associated with an account
|
Optional<ExternalTool> |
editExternalToolInCourse(String courseId,
ExternalTool tool)
Modify the settings of an external tool associated with a course
|
Optional<ExternalTool> |
getExternalToolInAccount(String accountId,
Integer toolId)
Retrieve a specific external tool configuration in a given account
|
Optional<ExternalTool> |
getExternalToolInCourse(String courseId,
Integer toolId)
Retrieve a specific external tool configuration in a given course
|
List<ExternalTool> |
listExternalToolsInAccount(ListExternalToolsOptions options)
Return a list of external tools registered to an account
|
List<ExternalTool> |
listExternalToolsInCourse(ListExternalToolsOptions options)
Return a list of external tools registered to a course
|
List<ExternalTool> |
listExternalToolsInGroup(ListExternalToolsOptions options)
Return a list of external tools registered to a group
|
protected Type |
listType() |
protected Class<ExternalTool> |
objectType() |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic ExternalToolImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public Optional<ExternalTool> getExternalToolInCourse(String courseId, Integer toolId) throws IOException
ExternalToolReadergetExternalToolInCourse in interface ExternalToolReadercourseId - The Canvas ID or sis_course_id:[SIS ID] for the course to querytoolId - The Canvas ID of the tool to queryIOException - if there is an error communicating with Canvaspublic Optional<ExternalTool> getExternalToolInAccount(String accountId, Integer toolId) throws IOException
ExternalToolReadergetExternalToolInAccount in interface ExternalToolReaderaccountId - The Canvas ID or sis_account_id:[SIS ID] for the account to querytoolId - The Canvas ID of the tool to queryIOException - if there is an error communicating with Canvaspublic List<ExternalTool> listExternalToolsInAccount(ListExternalToolsOptions options) throws IOException
ExternalToolReaderlistExternalToolsInAccount in interface ExternalToolReaderoptions - Parameters that alter which tools are returned by this callIOException - if there is an error communicating with Canvaspublic List<ExternalTool> listExternalToolsInCourse(ListExternalToolsOptions options) throws IOException
ExternalToolReaderlistExternalToolsInCourse in interface ExternalToolReaderoptions - Parameters that alter which tools are returned by this callIOException - if there is an error communicating with Canvaspublic List<ExternalTool> listExternalToolsInGroup(ListExternalToolsOptions options) throws IOException
ExternalToolReaderlistExternalToolsInGroup in interface ExternalToolReaderoptions - Parameters that alter which tools are returned by this callIOException - if there is an error communicating with Canvaspublic Optional<ExternalTool> createExternalToolInCourse(String courseId, ExternalTool tool) throws IOException
ExternalToolWritercreateExternalToolInCourse in interface ExternalToolWritercourseId - Canvas ID or sis_course_id:[SIS ID] for the course to create the tool intool - The tool to create. Must have name, privacy level, consumer key, shared secret and either url or domainIOException - if there is an error communicating with Canvaspublic Optional<ExternalTool> createExternalToolInAccount(String accountId, ExternalTool tool) throws IOException
ExternalToolWritercreateExternalToolInAccount in interface ExternalToolWriteraccountId - Canvas ID or sis_account_id:[SIS ID] for the account to create the tool intool - The tool to create. Must have name, privacy level, consumer key, shared secret and either url or domainIOException - if there is an error communicating with Canvaspublic Optional<ExternalTool> editExternalToolInCourse(String courseId, ExternalTool tool) throws IOException
ExternalToolWritereditExternalToolInCourse in interface ExternalToolWritercourseId - Canvas ID or sis_course_id:[SIS ID] for the coursetool - The tool with settings to be modified. Tool ID must be presentIOException - if there is an error communicating with Canvaspublic Optional<ExternalTool> editExternalToolInAccount(String accountId, ExternalTool tool) throws IOException
ExternalToolWritereditExternalToolInAccount in interface ExternalToolWriteraccountId - Canvas ID or sis_account_id:[SIS ID] for the account that contains the tooltool - The tool with settings to be modified. Tool ID must be presentIOException - if there is an error communicating with Canvaspublic Optional<ExternalTool> deleteExternalToolInCourse(String courseId, Integer toolId) throws IOException
ExternalToolWriterdeleteExternalToolInCourse in interface ExternalToolWritercourseId - Canvas course ID or sis_course_id:[SIS ID] for the course to delete the tool fromtoolId - The Canvas ID of the tool to deleteIOException - if there is an error communicating with Canvaspublic Optional<ExternalTool> deleteExternalToolInAccount(String accountId, Integer toolId) throws IOException
ExternalToolWriterdeleteExternalToolInAccount in interface ExternalToolWriteraccountId - Canvas account ID or sis_account_id:[SIS ID] for the account to delete the tool fromtoolId - Canvas ID of the tool to deleteIOException - if there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<ExternalTool,ExternalToolReader,ExternalToolWriter>protected Class<ExternalTool> objectType()
objectType in class BaseImpl<ExternalTool,ExternalToolReader,ExternalToolWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.