public class GetUsersInCourseOptions extends BaseOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
GetUsersInCourseOptions.EnrollmentState |
static class |
GetUsersInCourseOptions.EnrollmentType |
static class |
GetUsersInCourseOptions.Include |
optionsMap| Constructor and Description |
|---|
GetUsersInCourseOptions(String courseId) |
| Modifier and Type | Method and Description |
|---|---|
GetUsersInCourseOptions |
enrollmentRoleId(Integer roleId)
Filter users by course-level role ID.
|
GetUsersInCourseOptions |
enrollmentState(List<GetUsersInCourseOptions.EnrollmentState> enrollmentStates)
Filter users by enrollment state
|
GetUsersInCourseOptions |
enrollmentType(List<GetUsersInCourseOptions.EnrollmentType> enrollmentTypes)
Only return users who match the given enrollment type.
|
String |
getCourseId() |
GetUsersInCourseOptions |
include(List<GetUsersInCourseOptions.Include> includes)
Optional sub-items to include in the user response
|
GetUsersInCourseOptions |
searchTerm(String searchTerm)
Only return users who match search term.
|
GetUsersInCourseOptions |
userId(String userId)
If the given user ID exists in a course, the page parameter will be modified to return the page containing the given user.
|
GetUsersInCourseOptions |
userIds(List<String> userIds)
Only return the users in the given list of user IDs
|
addEnumList, addNumberList, addSingleItem, addStringList, getOptionsMappublic GetUsersInCourseOptions(String courseId)
public String getCourseId()
public GetUsersInCourseOptions searchTerm(String searchTerm)
searchTerm - Search term to filter users bypublic GetUsersInCourseOptions enrollmentType(List<GetUsersInCourseOptions.EnrollmentType> enrollmentTypes)
enrollmentTypes - List of enrollment types to includepublic GetUsersInCourseOptions enrollmentRoleId(Integer roleId)
roleId - ID of the role to filter users bypublic GetUsersInCourseOptions include(List<GetUsersInCourseOptions.Include> includes)
includes - List of includes to requestpublic GetUsersInCourseOptions userId(String userId)
userId - User ID to page topublic GetUsersInCourseOptions userIds(List<String> userIds)
userIds - List of user IDs to returnpublic GetUsersInCourseOptions enrollmentState(List<GetUsersInCourseOptions.EnrollmentState> enrollmentStates)
enrollmentStates - List of enrollment states to filter users byCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.