public class AssignmentGroupImpl extends BaseImpl<AssignmentGroup,AssignmentGroupReader,AssignmentGroupWriter> implements AssignmentGroupReader, AssignmentGroupWriter
apiVersion, canvasBaseUrl, canvasMessenger, masqueradeAs, masqueradeType, oauthToken, paginationPageSize, responseCallback, responseParser, serializeNulls| Constructor and Description |
|---|
AssignmentGroupImpl(String canvasBaseUrl,
Integer apiVersion,
OauthToken oauthToken,
RestClient restClient,
int connectTimeout,
int readTimeout,
Integer paginationPageSize,
Boolean serializeNulls)
Construct a new CanvasApi class with an OAuth token
|
| Modifier and Type | Method and Description |
|---|---|
Optional<AssignmentGroup> |
createAssignmentGroup(String courseId,
AssignmentGroup assignmentGroup)
Creates an assignment group in Canvas.
|
Optional<AssignmentGroup> |
deleteAssignmentGroup(DeleteAssignmentGroupOptions options)
Delete an assignment group from Canvas.
|
Optional<AssignmentGroup> |
editAssignmentGroup(String courseId,
AssignmentGroup assignmentGroup)
Modify an existing assignment group in Canvas.
|
Optional<AssignmentGroup> |
getAssignmentGroup(GetAssignmentGroupOptions options)
Returns the requested assignment group by ID
|
List<AssignmentGroup> |
listAssignmentGroup(ListAssignmentGroupOptions options)
Return a list of AssignmentGroups that the current user can view or manage.
|
protected Type |
listType() |
protected Class<AssignmentGroup> |
objectType() |
buildCanvasUrl, encode, getFromCanvas, getListFromCanvas, parseListOfResponses, readAsCanvasUser, readAsSisUser, withCallback, writeAsCanvasUser, writeAsSisUserclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadAsCanvasUser, readAsSisUser, withCallbackwriteAsCanvasUser, writeAsSisUserpublic AssignmentGroupImpl(String canvasBaseUrl, Integer apiVersion, OauthToken oauthToken, RestClient restClient, int connectTimeout, int readTimeout, Integer paginationPageSize, Boolean serializeNulls)
canvasBaseUrl - The base URL of your canvas instanceapiVersion - The version of the Canvas API (currently 1)oauthToken - OAuth token to use when executing API callsrestClient - a RestClient implementation to use when talking to CanvasconnectTimeout - Timeout in seconds to use when connectingreadTimeout - Timeout in seconds to use when waiting for data to come back from an open connectionpaginationPageSize - How many objects to request per page on paginated requestsserializeNulls - Whether or not to include null fields in the serialized JSON. Defaults to false if nullpublic Optional<AssignmentGroup> getAssignmentGroup(GetAssignmentGroupOptions options) throws IOException
AssignmentGroupReadergetAssignmentGroup in interface AssignmentGroupReaderoptions - Collection of optional parameters to the Canvas APIIOException - When there is an error communicating with Canvaspublic List<AssignmentGroup> listAssignmentGroup(ListAssignmentGroupOptions options) throws IOException
AssignmentGroupReaderlistAssignmentGroup in interface AssignmentGroupReaderoptions - A mapping of optional parameters for assignment groupsIOException - When there is an error communicating with Canvaspublic Optional<AssignmentGroup> createAssignmentGroup(String courseId, AssignmentGroup assignmentGroup) throws IOException
AssignmentGroupWritercreateAssignmentGroup in interface AssignmentGroupWritercourseId - Course that the assignment group is inassignmentGroup - The Assignment Group object to createIOException - When there is an error communicating with Canvaspublic Optional<AssignmentGroup> editAssignmentGroup(String courseId, AssignmentGroup assignmentGroup) throws IOException
AssignmentGroupWritereditAssignmentGroup in interface AssignmentGroupWritercourseId - Course ID of the course containing the assignment group to editassignmentGroup - Modified assignment group to saveIOException - When there is an error communicating with Canvaspublic Optional<AssignmentGroup> deleteAssignmentGroup(DeleteAssignmentGroupOptions options) throws IOException
AssignmentGroupWriterdeleteAssignmentGroup in interface AssignmentGroupWriteroptions - Collection of optional parameters for the Canvas API callIOException - When there is an error communicating with Canvasprotected Type listType()
listType in class BaseImpl<AssignmentGroup,AssignmentGroupReader,AssignmentGroupWriter>protected Class<AssignmentGroup> objectType()
objectType in class BaseImpl<AssignmentGroup,AssignmentGroupReader,AssignmentGroupWriter>Copyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.