public class CommunicationChannelImpl extends BaseImpl<CommunicationChannel,CommunicationChannelReader,CommunicationChannelWriter> implements CommunicationChannelReader, CommunicationChannelWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
CommunicationChannelImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
Optional<CommunicationChannel> |
createCommunicationChannel(CreateCommunicationChannelOptions options)
Adds a communication channel to a Canvas user.
|
Optional<CommunicationChannel> |
deleteCommunicationChannel(CommunicationChannel cc)
Delete a communication channel from Canvas
|
List<CommunicationChannel> |
getCommunicationChannelsForUser(String userId)
Retrieve a user's communication channels.
|
protected Type |
listType() |
protected Class<CommunicationChannel> |
objectType() |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic CommunicationChannelImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public List<CommunicationChannel> getCommunicationChannelsForUser(String userId) throws IOException
CommunicationChannelReadergetCommunicationChannelsForUser in interface CommunicationChannelReaderuserId - the id of the user to retrieve communication channels forIOException - When there is an error communicating with Canvaspublic Optional<CommunicationChannel> createCommunicationChannel(CreateCommunicationChannelOptions options) throws IOException
CommunicationChannelWritercreateCommunicationChannel in interface CommunicationChannelWriteroptions - The communication channel to create. Must contain user ID and address.IOException - When there is an error communicating with Canvaspublic Optional<CommunicationChannel> deleteCommunicationChannel(CommunicationChannel cc) throws IOException
CommunicationChannelWriterdeleteCommunicationChannel in interface CommunicationChannelWritercc - The communication channel record to delete. Must contain User ID and communication channel ID.IOException - When there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<CommunicationChannel,CommunicationChannelReader,CommunicationChannelWriter>protected Class<CommunicationChannel> objectType()
objectType in class BaseImpl<CommunicationChannel,CommunicationChannelReader,CommunicationChannelWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.