@@ -29,7 +29,7 @@ public ContentMigrationImpl(String canvasBaseUrl, Integer apiVersion, OauthToken
2929 }
3030
3131 @ Override
32- public Optional <ContentMigration > getCourseContentMigration (String courseId , Integer id ) throws IOException {
32+ public Optional <ContentMigration > getCourseContentMigration (String courseId , Long id ) throws IOException {
3333 LOG .debug ("listing a content migration for the course" );
3434 String url = buildCanvasUrl ("courses/" + courseId + "/content_migrations/" + id .toString (), Collections .emptyMap ());
3535 Response response = canvasMessenger .getSingleResponseFromCanvas (oauthToken , url );
@@ -52,7 +52,7 @@ public Optional<ContentMigration> createCourseContentMigration(CreateCourseConte
5252 }
5353
5454 @ Override
55- public Optional <ContentMigration > updateCourseContentMigration (Integer id , CreateCourseContentMigrationOptions options ) throws IOException {
55+ public Optional <ContentMigration > updateCourseContentMigration (Long id , CreateCourseContentMigrationOptions options ) throws IOException {
5656 LOG .debug ("updating course content migration" );
5757 String url = buildCanvasUrl ("courses/" + options .getDestinationCourseId () + "/content_migrations/" + id .toString (), Collections .emptyMap ());
5858 Response response = canvasMessenger .putToCanvas (oauthToken , url , options .getOptionsMap ());
@@ -61,7 +61,7 @@ public Optional<ContentMigration> updateCourseContentMigration(Integer id, Creat
6161
6262 /******************************** USERS ********************************/
6363 @ Override
64- public Optional <ContentMigration > getUserContentMigration (String userId , Integer id ) throws IOException {
64+ public Optional <ContentMigration > getUserContentMigration (String userId , Long id ) throws IOException {
6565 LOG .debug ("listing a content migration for the user" );
6666 String url = buildCanvasUrl ("users/" + userId + "/content_migrations/" + id .toString (), Collections .emptyMap ());
6767 Response response = canvasMessenger .getSingleResponseFromCanvas (oauthToken , url );
@@ -84,7 +84,7 @@ public Optional<ContentMigration> createUserContentMigration(CreateContentMigrat
8484 }
8585
8686 @ Override
87- public Optional <ContentMigration > updateUserContentMigration (Integer id , CreateContentMigrationOptions options ) throws IOException {
87+ public Optional <ContentMigration > updateUserContentMigration (Long id , CreateContentMigrationOptions options ) throws IOException {
8888 LOG .debug ("updating user content migration" );
8989 String url = buildCanvasUrl ("users/" + options .getSourceCourseId () + "/content_migrations/" + id .toString (), Collections .emptyMap ());
9090 Response response = canvasMessenger .putToCanvas (oauthToken , url , options .getOptionsMap ());
@@ -93,7 +93,7 @@ public Optional<ContentMigration> updateUserContentMigration(Integer id, CreateC
9393
9494 /******************************** GROUPS ********************************/
9595 @ Override
96- public Optional <ContentMigration > getGroupContentMigration (String groupId , Integer id ) throws IOException {
96+ public Optional <ContentMigration > getGroupContentMigration (String groupId , Long id ) throws IOException {
9797 LOG .debug ("listing a content migration for the group" );
9898 String url = buildCanvasUrl ("groups/" + groupId + "/content_migrations/" + id .toString (), Collections .emptyMap ());
9999 Response response = canvasMessenger .getSingleResponseFromCanvas (oauthToken , url );
@@ -116,7 +116,7 @@ public Optional<ContentMigration> createGroupContentMigration(CreateContentMigra
116116 }
117117
118118 @ Override
119- public Optional <ContentMigration > updateGroupContentMigration (Integer id , CreateContentMigrationOptions options ) throws IOException {
119+ public Optional <ContentMigration > updateGroupContentMigration (Long id , CreateContentMigrationOptions options ) throws IOException {
120120 LOG .debug ("updating group content migration" );
121121 String url = buildCanvasUrl ("groups/" + options .getSourceCourseId () + "/content_migrations/" + id .toString (), Collections .emptyMap ());
122122 Response response = canvasMessenger .putToCanvas (oauthToken , url , options .getOptionsMap ());
@@ -125,7 +125,7 @@ public Optional<ContentMigration> updateGroupContentMigration(Integer id, Create
125125
126126 /******************************** ACCOUNTS ********************************/
127127 @ Override
128- public Optional <ContentMigration > getAccountContentMigration (String accountId , Integer id ) throws IOException {
128+ public Optional <ContentMigration > getAccountContentMigration (String accountId , Long id ) throws IOException {
129129 LOG .debug ("listing a content migration for the account" );
130130 String url = buildCanvasUrl ("accounts/" + accountId + "/content_migrations/" + id .toString (), Collections .emptyMap ());
131131 Response response = canvasMessenger .getSingleResponseFromCanvas (oauthToken , url );
@@ -148,7 +148,7 @@ public Optional<ContentMigration> createAccountContentMigration(CreateContentMig
148148 }
149149
150150 @ Override
151- public Optional <ContentMigration > updateAccountContentMigration (Integer id , CreateContentMigrationOptions options ) throws IOException {
151+ public Optional <ContentMigration > updateAccountContentMigration (Long id , CreateContentMigrationOptions options ) throws IOException {
152152 LOG .debug ("updating account content migration" );
153153 String url = buildCanvasUrl ("accounts/" + options .getSourceCourseId () + "/content_migrations/" + id .toString (), Collections .emptyMap ());
154154 Response response = canvasMessenger .putToCanvas (oauthToken , url , options .getOptionsMap ());
0 commit comments