public class EnrollmentImpl extends BaseImpl<Enrollment,EnrollmentReader,EnrollmentWriter> implements EnrollmentReader, EnrollmentWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
EnrollmentImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Enrollment> |
dropUser(String courseId,
String enrollmentId)
Drop a user enrolled in a course using the Unenrollment option of DELETE.
|
Optional<Enrollment> |
dropUser(String courseId,
String enrollmentId,
UnEnrollOptions unEnrollOption)
Drop a user enrolled in a course passing the UnEnrollOptions string in the task param.
|
Optional<Enrollment> |
enrollUser(Enrollment enrollment)
Deprecated.
|
Optional<Enrollment> |
enrollUserInCourse(Enrollment enrollment)
Enrolls a user in a course
|
Optional<Enrollment> |
enrollUserInSection(Enrollment enrollment)
Enrolls a user in a section.
|
List<Enrollment> |
getCourseEnrollments(GetEnrollmentOptions options)
Retrieve enrollments in a given course.
|
List<Enrollment> |
getSectionEnrollments(GetEnrollmentOptions options)
Retrieve enrollments in a given section.
|
List<Enrollment> |
getUserEnrollments(GetEnrollmentOptions options)
Retrieve a user's enrollments.
|
protected Type |
listType() |
protected Class<Enrollment> |
objectType() |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic EnrollmentImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public List<Enrollment> getUserEnrollments(GetEnrollmentOptions options) throws IOException
EnrollmentReadergetUserEnrollments in interface EnrollmentReaderoptions - API options available to this callIOException - When there is an error communicating with Canvaspublic List<Enrollment> getSectionEnrollments(GetEnrollmentOptions options) throws IOException
EnrollmentReadergetSectionEnrollments in interface EnrollmentReaderoptions - API options available to this callIOException - When there is an error communicating with Canvaspublic List<Enrollment> getCourseEnrollments(GetEnrollmentOptions options) throws IOException
EnrollmentReadergetCourseEnrollments in interface EnrollmentReaderoptions - API options available to this callIOException - When there is an error communicating with Canvas@Deprecated public Optional<Enrollment> enrollUser(Enrollment enrollment) throws IOException
EnrollmentWriterenrollUser in interface EnrollmentWriterenrollment - partially populated Enrollment objectIOException - if there is an error communicating with Canvaspublic Optional<Enrollment> enrollUserInCourse(Enrollment enrollment) throws IOException
EnrollmentWriterenrollUserInCourse in interface EnrollmentWriterenrollment - partially populated Enrollment objectIOException - if there is an error communicating with Canvaspublic Optional<Enrollment> enrollUserInSection(Enrollment enrollment) throws IOException
EnrollmentWriterenrollUserInSection in interface EnrollmentWriterenrollment - partially populated Enrollment objectIOException - if there is an error communicating with Canvaspublic Optional<Enrollment> dropUser(String courseId, String enrollmentId) throws IOException
EnrollmentWriterdropUser in interface EnrollmentWritercourseId - - Canvas course identifierenrollmentId - enrollmentId - Canvas enrollment identifierIOException - if there is an error communicating with Canvaspublic Optional<Enrollment> dropUser(String courseId, String enrollmentId, UnEnrollOptions unEnrollOption) throws IOException
EnrollmentWriterdropUser in interface EnrollmentWritercourseId - - Canvas course identifierenrollmentId - - Canvas enrollment identifierunEnrollOption - - UnEnrollOption enum value of delete, conclude, inactivate or deactivateIOException - if there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<Enrollment,EnrollmentReader,EnrollmentWriter>protected Class<Enrollment> objectType()
objectType in class BaseImpl<Enrollment,EnrollmentReader,EnrollmentWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.