public class SiteParticipantHelper extends Object
| Constructor and Description |
|---|
SiteParticipantHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addParticipantsFromEnrollmentSet(Map<String,Participant> participantsMap,
AuthzGroup realm,
String providerCourseEid,
EnrollmentSet enrollmentSet,
String sectionTitle)
Add participant from provider-defined enrollment set
|
static void |
addParticipantsFromEnrollmentSet(Map<String,Participant> participantsMap,
AuthzGroup realm,
String providerCourseEid,
EnrollmentSet enrollmentSet,
String sectionTitle,
String filterType,
String filterID,
Set<Member> groupMembership)
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 void |
addParticipantsFromMemberships(Map participantsMap,
AuthzGroup realm,
Set memberships,
String sectionTitle,
String filterType,
String filterID,
Set<Member> groupMembership)
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) |
static Collection<Participant> |
prepareParticipants(String siteId,
List<String> providerCourseList,
String filterType,
String filterID) |
static Set<Member> |
setGroupMembership(String siteID,
String groupID)
Set the membership for the given group from the given site
|
public static void addParticipantsFromEnrollmentSet(Map<String,Participant> participantsMap, AuthzGroup realm, String providerCourseEid, EnrollmentSet enrollmentSet, String sectionTitle)
participantsMap - realm - providerCourseEid - enrollmentSet - sectionTitle - public static void addParticipantsFromEnrollmentSet(Map<String,Participant> participantsMap, AuthzGroup realm, String providerCourseEid, EnrollmentSet enrollmentSet, String sectionTitle, String filterType, String filterID, Set<Member> groupMembership)
participantsMap - realm - providerCourseEid - enrollmentSet - sectionTitle - filterType - the type of filter (section, group or role)filterID - the ID to filter ongroupMembership - public static Map<String,User> getEidUserMapFromCollection(Collection<Object> cObjects)
memberships - public static void addParticipantsFromMemberships(Map participantsMap, AuthzGroup realm, Set memberships, String sectionTitle, String filterType, String filterID, Set<Member> groupMembership)
participantsMap - realm - memberships - sectionTitle - filterType - filterID - groupMembership - public static void addParticipantsFromMemberships(Map participantsMap, AuthzGroup realm, Set memberships, String sectionTitle)
participantsMap - realm - memberships - sectionTitle - public static List<String> getProviderCourseList(String siteId)
id - is a String representation of the course realm id (external
id).public static Set<Member> setGroupMembership(String siteID, String groupID)
siteID - the ID of the site which contains the group in questiongroupID - the ID of the group to add participants frompublic static Collection<Participant> prepareParticipants(String siteID, List<String> providerCourseList)
public static Collection<Participant> prepareParticipants(String siteId, List<String> providerCourseList, String filterType, String filterID)
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 © 2022. All rights reserved.