public class SiteParticipantHelper extends Object
| Constructor and Description |
|---|
SiteParticipantHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addParticipantsFromEnrollmentSet(Map participantsMap,
AuthzGroup realm,
String providerCourseEid,
EnrollmentSet enrollmentSet,
String sectionTitle)
Add participant from provider-defined enrollment set
|
static void |
addParticipantsFromMemberships(Map participantsMap,
AuthzGroup realm,
Set memberships,
String sectionTitle)
Add participant from provider-defined membership set
|
static List<Role> |
getAllowedRoles(String siteType,
List<Role> allRolesForSiteType)
Get a list of the 'allowed roles', taking into account the current site type
and the list of restricted roles defined in sakai.properties.
|
static List<Role> |
getAllowedRoles(String siteType,
Set<Role> allRolesForSiteType) |
static Map<String,User> |
getEidUserMapFromCollection(Collection<Object> cObjects)
Collect all member users data in one call
|
static List<String> |
getProviderCourseList(String siteId)
getProviderCourseList a course site/realm id in one of three formats, for
a single section, for multiple sections of the same course, or for a
cross-listing having multiple courses. getProviderCourseList parses a
realm id into year, term, campus_code, catalog_nbr, section components.
|
static Set<String> |
getRestrictedRoles(String siteType)
Get a list of restricted roles, taking into account the current site type
|
static String |
makeUserDisplayName(String userId) |
static Collection<Participant> |
prepareParticipants(String siteId,
List<String> providerCourseList) |
public static void addParticipantsFromEnrollmentSet(Map participantsMap, AuthzGroup realm, String providerCourseEid, EnrollmentSet enrollmentSet, String sectionTitle)
participants - realm - providerCourseEid - enrollmentSet - public static Map<String,User> getEidUserMapFromCollection(Collection<Object> cObjects)
memberships - public static void addParticipantsFromMemberships(Map participantsMap, AuthzGroup realm, Set memberships, String sectionTitle)
participants - realm - providerCourseEid - memberships - public static List<String> getProviderCourseList(String siteId)
id - is a String representation of the course realm id (external
id).public static Collection<Participant> prepareParticipants(String siteId, List<String> providerCourseList)
public static Set<String> getRestrictedRoles(String siteType)
siteType - the current site's typepublic static List<Role> getAllowedRoles(String siteType, List<Role> allRolesForSiteType)
siteType - the current site's typepublic static List<Role> getAllowedRoles(String siteType, Set<Role> allRolesForSiteType)
Copyright © 2003–2018 University of Michigan. All rights reserved.