public interface SectionWriter extends CanvasWriter<Section,SectionWriter>
| Modifier and Type | Method and Description |
|---|---|
Optional<Section> |
createSection(String courseId,
Section section,
Boolean enableSisReactivation)
Create a new section in Canvas.
|
Optional<Section> |
crosslist(String sectionId,
String courseId)
Move the Section to another course in Canvas.
|
Optional<Section> |
deleteSection(String sectionId)
Delete an existing section in Canvas.
|
Optional<Section> |
updateSection(Section section)
Update a section in Canvas.
|
writeAsCanvasUser, writeAsSisUserOptional<Section> createSection(String courseId, Section section, Boolean enableSisReactivation) throws IOException
courseId - identifies the parent course we are adding this section tosection - a section object containing the information needed to create
the section in CanvasenableSisReactivation - when true, will first try to re-activate a
deleted section with matching sis_section_id if possible. Ignored if nullIOException - When there is an error communicating with CanvasOptional<Section> updateSection(Section section) throws IOException
section - section object with changes made that will be persistedIOException - when there is an error communicating with CanvasOptional<Section> deleteSection(String sectionId) throws IOException
sectionId - identifies the section to deleteIOException - When there is an error communicating with CanvasOptional<Section> crosslist(String sectionId, String courseId) throws IOException
sectionId - identifies the section to movecourseId - identifies the course to move the section intoIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.