public interface EnrollmentWriter extends CanvasWriter<Enrollment,EnrollmentWriter>
| 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.
Use the
enrollUserInCourse or enrollUserInSection methods instead. |
Optional<Enrollment> |
enrollUserInCourse(Enrollment enrollment)
Enrolls a user in a course
|
Optional<Enrollment> |
enrollUserInSection(Enrollment enrollment)
Enrolls a user in a section.
|
writeAsCanvasUser, writeAsSisUser@Deprecated Optional<Enrollment> enrollUser(Enrollment enrollment) throws IllegalArgumentException, IOException
enrollUserInCourse or enrollUserInSection methods instead.enrollment - partially populated Enrollment objectIllegalArgumentException - when the enrollment courseID is not setIOException - if there is an error communicating with CanvasOptional<Enrollment> enrollUserInCourse(Enrollment enrollment) throws IllegalArgumentException, IOException
enrollment - partially populated Enrollment objectIllegalArgumentException - when the enrollment courseID is not setIOException - if there is an error communicating with CanvasOptional<Enrollment> enrollUserInSection(Enrollment enrollment) throws IllegalArgumentException, IOException
enrollment - partially populated Enrollment objectIllegalArgumentException - when the enrollment courseSectionId is not setIOException - if there is an error communicating with CanvasOptional<Enrollment> dropUser(String courseId, String enrollmentId, UnEnrollOptions unEnrollOption) throws IOException
courseId - - Canvas course identifierenrollmentId - - Canvas enrollment identifierunEnrollOption - - UnEnrollOption enum value of delete, conclude, inactivate or deactivateIOException - if there is an error communicating with CanvasOptional<Enrollment> dropUser(String courseId, String enrollmentId) throws IOException
courseId - - Canvas course identifierenrollmentId - enrollmentId - Canvas enrollment identifierIOException - if there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.