public class FeatureImpl extends BaseImpl<Feature,FeatureReader,FeatureWriter> implements FeatureReader
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
FeatureImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls)
Construct a new CanvasApi class with an OAuth token
|
| Modifier and Type | Method and Description |
|---|---|
List<Feature> |
getAccountFeatures(String accountId) |
List<Feature> |
getCourseFeatures(String courseId) |
List<Feature> |
getUserFeatures(String userId) |
protected Type |
listType() |
protected Class<Feature> |
objectType() |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackpublic FeatureImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
canvasBaseUrl - The base URL of your canvas instanceapiVersion - The version of the Canvas API (currently 1)oauthToken - OAuth token to use when executing API callsrestClient - a RestClient implementation to use when talking to CanvasconnectTimeout - Timeout in seconds to use when connectingreadTimeout - Timeout in seconds to use when waiting for data to come back from an open connectionpaginationPageSize - How many objects to request per page on paginated requestsserializeNulls - Whether or not to include null fields in the serialized JSON. Defaults to false if nullprotected Type listType()
listType in class BaseImpl<Feature,FeatureReader,FeatureWriter>protected Class<Feature> objectType()
objectType in class BaseImpl<Feature,FeatureReader,FeatureWriter>public List<Feature> getCourseFeatures(String courseId) throws IOException
getCourseFeatures in interface FeatureReaderIOExceptionpublic List<Feature> getAccountFeatures(String accountId) throws IOException
getAccountFeatures in interface FeatureReaderIOExceptionpublic List<Feature> getUserFeatures(String userId) throws IOException
getUserFeatures in interface FeatureReaderIOExceptionCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.