Skip to content

Commit

Permalink
Merge pull request #27 from bgarciaentornos/fixJavadocs
Browse files Browse the repository at this point in the history
Fix JavaDocs warnings and errors
  • Loading branch information
buckett committed Jan 14, 2021
2 parents d7df09f + 0b77d29 commit de5f331
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ public interface CommunicationChannelWriter extends CanvasWriter<CommunicationCh

/**
* Adds a communication channel to a Canvas user.
* @param cc The communication channel to create. Must contain user ID and address.
* @param options The communication channel to create. Must contain user ID and address.
* @return The created communication channel object if creation was successful
* @throws IOException When there is an error communicating with Canvas
*/
Optional<CommunicationChannel> createCommunicationChannel(CreateCommunicationChannelOptions ccco) throws IOException;
Optional<CommunicationChannel> createCommunicationChannel(CreateCommunicationChannelOptions options) throws IOException;

/**
* Delete a communication channel from Canvas
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/edu/ksu/canvas/interfaces/CourseWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ public interface CourseWriter extends CanvasWriter<Course, CourseWriter> {
/**
* Start a file upload to a course.
*
* @param options
* @throws IOException
* @return
* @param courseId The id of the course where the file upload will be done
* @param options Upload file configuration
* @throws IOException When there is an error communicating with Canvas
* @return Deposit (This is part of the file upload workflow)
*/
Optional<Deposit> uploadFile(String courseId, UploadOptions options) throws IOException;
}
1 change: 1 addition & 0 deletions src/main/java/edu/ksu/canvas/interfaces/FileReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public interface FileReader extends CanvasReader<File, FileReader> {
* This is used primarily when you have a redirect after you've uploaded a file.
* @param url The URL of the file that has been uploaded.
* @return The file object wrapped in an optional.
* @throws IOException When there is an error communicating with Canvas
*/
Optional<File> getFile(String url) throws IOException;
}
1 change: 0 additions & 1 deletion src/main/java/edu/ksu/canvas/interfaces/SectionWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public interface SectionWriter extends CanvasWriter<Section, SectionWriter> {
* Delete an existing section in Canvas.
*
* @param sectionId identifies the section to delete
* @return true if the delete was successful
* @return the section object that was deleted
* @throws IOException When there is an error communicating with Canvas
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public class CreateCommunicationChannelOptions extends BaseOptions {

/**
* Constructs object to hold API options for creating a communication channel.
* @param userId The id of the related user
*/
public CreateCommunicationChannelOptions(String userId) {
this.userId = userId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public enum MigrationType {
/**
* Constructs object to hold API options for the creating a content migration.
* A course content migration has its own options class, see CreateCourseContentMigrationOptions.
* @param sourceCourseId The id of the source course
* @param migrationType Migration type, see enum options
*/
public CreateContentMigrationOptions(String sourceCourseId, MigrationType migrationType) {
this.sourceCourseId = sourceCourseId;
Expand Down

0 comments on commit de5f331

Please sign in to comment.