public class GetEnrollmentOptions extends BaseOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
GetEnrollmentOptions.EnrollmentState |
static class |
GetEnrollmentOptions.EnrollmentType |
static class |
GetEnrollmentOptions.Include |
optionsMap| Constructor and Description |
|---|
GetEnrollmentOptions(String objectId)
Constructs object to hold API options for the enrollment retriever calls.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getObjectId() |
GetEnrollmentOptions |
gradingPeriodId(Integer gradingPeriod)
Return grades for the given grading period.
|
GetEnrollmentOptions |
include(List<GetEnrollmentOptions.Include> includes)
Additional objects to include in the returned enrollments.
|
GetEnrollmentOptions |
role(List<String> roles)
Filter the list of enrollments by the given enrollment roles.
|
GetEnrollmentOptions |
sisAccountId(List<String> sisAccountIds)
Only return enrollments for the specified SIS account IDs.
|
GetEnrollmentOptions |
sisCourseId(List<String> sisCourseIds)
Only return enrollments for the specified SIS course IDs.
|
GetEnrollmentOptions |
sisSectionId(List<String> sisSectionIds)
Only return enrollments for the specified SIS section IDs.
|
GetEnrollmentOptions |
sisUserId(List<String> sisUserIds)
Only return enrollments for the specified SIS user IDs.
|
GetEnrollmentOptions |
state(List<GetEnrollmentOptions.EnrollmentState> enrollmentStates)
Filter the list of enrollments by the given enrollment states.
|
GetEnrollmentOptions |
type(List<GetEnrollmentOptions.EnrollmentType> enrollmentTypes)
Specify enrollment types to filter the returned list by (student, teacher, TA, designer, observer)
This option is ignored if a role is specified.
|
GetEnrollmentOptions |
userId(String userId)
Filter by the given user ID.
|
addEnumList, addNumberList, addSingleItem, addStringList, getOptionsMappublic GetEnrollmentOptions(String objectId)
objectId - The course, section or user ID, depending on which API call you are hittingpublic String getObjectId()
public GetEnrollmentOptions type(List<GetEnrollmentOptions.EnrollmentType> enrollmentTypes)
enrollmentTypes - All the enrollment types you want to retrievepublic GetEnrollmentOptions role(List<String> roles)
roles - List of roles to filter enrollments bypublic GetEnrollmentOptions state(List<GetEnrollmentOptions.EnrollmentState> enrollmentStates)
enrollmentStates - List of enrollment states to filter onpublic GetEnrollmentOptions include(List<GetEnrollmentOptions.Include> includes)
includes - List of additional items to includepublic GetEnrollmentOptions userId(String userId)
userId - User ID to filter enrollments bypublic GetEnrollmentOptions gradingPeriodId(Integer gradingPeriod)
gradingPeriod - Grading period to restrict reported grades topublic GetEnrollmentOptions sisAccountId(List<String> sisAccountIds)
sisAccountIds - SIS account Idspublic GetEnrollmentOptions sisCourseId(List<String> sisCourseIds)
sisCourseIds - SIS course Idspublic GetEnrollmentOptions sisSectionId(List<String> sisSectionIds)
sisSectionIds - SIS section IDspublic GetEnrollmentOptions sisUserId(List<String> sisUserIds)
sisUserIds - SIS user IdsCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.