public class LoginImpl extends BaseImpl<Login,LoginReader,LoginWriter> implements LoginReader, LoginWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
LoginImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Login> |
deleteLogin(Login login)
Delete a login from Canvas
|
List<Login> |
getLoginForUser(String userId)
Retrieve a user's logins.
|
protected Type |
listType() |
protected Class<Login> |
objectType() |
Optional<Login> |
updateLogin(Login login)
Write changes to a login to Canvas.
|
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic LoginImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public List<Login> getLoginForUser(String userId) throws IOException
LoginReadergetLoginForUser in interface LoginReaderuserId - the id of the user to retrieve logins forIOException - When there is an error communicating with Canvaspublic Optional<Login> updateLogin(Login login) throws IOException
LoginWriterupdateLogin in interface LoginWriterlogin - The modified login to update. Must contain account ID and login ID.IOException - When there is an error communicating with Canvaspublic Optional<Login> deleteLogin(Login login) throws IOException
LoginWriterdeleteLogin in interface LoginWriterlogin - The login record to delete. Must contain User ID and login ID.IOException - When there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<Login,LoginReader,LoginWriter>protected Class<Login> objectType()
objectType in class BaseImpl<Login,LoginReader,LoginWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.