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

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

The newest version!
package edu.ksu.canvas.interfaces;

import edu.ksu.canvas.model.MigrationIssue;

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

public interface MigrationIssueReader extends CanvasReader {

    /**
     * Returns a list migration issues.
     * @param courseId The destination course ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @return List of migration issues
     * @throws IOException When there is an error communicating with Canvas
     */
    List getCourseMigrationIssues(String courseId, Long migrationId) throws IOException;

    /**
     * Returns a migration issue.
     * @param courseId The destination course ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @param issueId The Canvas ID of the migration issue
     * @return A migration issue
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getCourseMigrationIssue(String courseId, Long migrationId, Long issueId) throws IOException;

    /**
     * Returns a list migration issues.
     * @param userId The user ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @return List of migration issues
     * @throws IOException When there is an error communicating with Canvas
     */
    List getUserMigrationIssues(String userId, Long migrationId) throws IOException;

    /**
     * Returns a migration issue.
     * @param userId The user ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @param issueId The Canvas ID of the migration issue
     * @return A migration issue
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getUserMigrationIssue(String userId, Long migrationId, Long issueId) throws IOException;

    /**
     * Returns a list migration issues.
     * @param groupId The group ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @return List of migration issues
     * @throws IOException When there is an error communicating with Canvas
     */
    List getGroupMigrationIssues(String groupId, Long migrationId) throws IOException;

    /**
     * Returns a migration issue.
     * @param groupId The group ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @param issueId The Canvas ID of the migration issue
     * @return A migration issue
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getGroupMigrationIssue(String groupId, Long migrationId, Long issueId) throws IOException;

    /**
     * Returns a list migration issues.
     * @param accountId The account ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @return List of migration issues
     * @throws IOException When there is an error communicating with Canvas
     */
    List getAccountMigrationIssues(String accountId, Long migrationId) throws IOException;

    /**
     * Returns a migration issue.
     * @param accountId The account ID for the migration
     * @param migrationId The Canvas ID of the content migration
     * @param issueId The Canvas ID of the migration issue
     * @return A migration issue
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getAccountMigrationIssue(String accountId, Long migrationId, Long issueId) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy