All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.ksu.canvas.interfaces.GradingStandardReader Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package edu.ksu.canvas.interfaces;

import edu.ksu.canvas.model.GradingStandard;

import java.io.IOException;
import java.util.List;
import java.util.Optional;

public interface GradingStandardReader extends CanvasReader {

    /**
     * List grading standards associated with a given course
     * @param courseId The Canvas course ID or sis_course_id:xxxx
     * @return A list of grading standards in the course
     * @throws IOException if there is an error communicating with Canvas
     */
    List listGradingStandardsInCourse(String courseId) throws IOException;

    /**
     * List grading standards associated with an account
     * @param accountId The Canvas account ID or sis_account_id:xxxx
     * @return A list of grading standards in the account
     * @throws IOException if there is an error communicating with Canvas
     */
    List listGradingStandardsInAccount(String accountId) throws IOException;

    /**
     * Get a specific grading standard from within a course
     * @param courseId Canvas course ID or sis_course_id:xxxx
     * @param gradingStandardId Canvas grading standard ID
     * @return The requested grading standard
     * @throws IOException if there is an error communicating with Canvas
     */
    Optional getGradingStandardInCourse(String courseId, Long gradingStandardId) throws IOException;

    /**
     * Get a specific grading standard from within an account
     * @param accountId Canvas account ID or sis_account_id:xxxx
     * @param gradingStandardId Canvas grading standard ID
     * @return The requested grading standard
     * @throws IOException if there is an error communicating with Canvas
     */
    Optional getGradingStandardInAccount(String accountId, Long gradingStandardId) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy