public class EnrollmentTermImpl extends BaseImpl<EnrollmentTerm,EnrollmentTermReader,EnrollmentTermWriter> implements EnrollmentTermReader, EnrollmentTermWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
EnrollmentTermImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
Optional<EnrollmentTerm> |
getEnrollmentTerm(String accountId,
String termId)
Get a single enrollment term.
|
List<EnrollmentTerm> |
getEnrollmentTerms(GetEnrollmentTermOptions options)
Retrieve the enrollment terms for a single account.
|
protected Type |
listType() |
protected Class<EnrollmentTerm> |
objectType() |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic EnrollmentTermImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public List<EnrollmentTerm> getEnrollmentTerms(GetEnrollmentTermOptions options) throws IOException
EnrollmentTermReadergetEnrollmentTerms in interface EnrollmentTermReaderoptions - API options available to this callIOException - When there is an error communicating with Canvaspublic Optional<EnrollmentTerm> getEnrollmentTerm(String accountId, String termId) throws IOException
EnrollmentTermReadergetEnrollmentTerm in interface EnrollmentTermReaderaccountId - The account ID to look in.termId - The term ID to lookup.IOException - When there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<EnrollmentTerm,EnrollmentTermReader,EnrollmentTermWriter>protected Class<EnrollmentTerm> objectType()
objectType in class BaseImpl<EnrollmentTerm,EnrollmentTermReader,EnrollmentTermWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.