public class PageImpl extends BaseImpl<Page,PageReader,PageWriter> implements PageReader, PageWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
PageImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Page> |
getCoursePage(String courseId,
String pageUrl)
Retrieve a specified page associated with a course.
|
Optional<Page> |
getGroupPage(String groupId,
String pageUrl)
Retrieve a specified page associated with a group.
|
List<Page> |
listPagesInCourse(String courseId)
Get a list of pages in a course.
|
List<Page> |
listPagesInGroup(String groupId)
Get a list of pages in a group.
|
protected Type |
listType() |
protected Class<Page> |
objectType() |
Optional<Page> |
updateCoursePage(Page page,
String courseId)
Save a course page to Canvas
|
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic PageImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
public Optional<Page> getCoursePage(String courseId, String pageUrl) throws IOException
PageReadergetCoursePage in interface PageReadercourseId - The Canvas course IDpageUrl - The unique URL identifier of a page within the courseIOException - When there is an error communicating with Canvaspublic Optional<Page> getGroupPage(String groupId, String pageUrl) throws IOException
PageReadergetGroupPage in interface PageReadergroupId - The Canvas group IDpageUrl - The unique URL identifier of a page within the groupIOException - When there is an error communicating with Canvaspublic Optional<Page> updateCoursePage(Page page, String courseId) throws IOException
PageWriterupdateCoursePage in interface PageWriterpage - The page object to savecourseId - The Canvas course ID that this page is to be saved toIOException - When there is an error communicating with Canvaspublic List<Page> listPagesInCourse(String courseId) throws IOException
PageReaderlistPagesInCourse in interface PageReadercourseId - Canvas ID of the courseIOException - When there is an error communicating with Canvaspublic List<Page> listPagesInGroup(String groupId) throws IOException
PageReaderlistPagesInGroup in interface PageReadergroupId - Canvas Group ID of the groupIOException - When there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<Page,PageReader,PageWriter>protected Class<Page> objectType()
objectType in class BaseImpl<Page,PageReader,PageWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.