public class CourseManagementGroupProvider extends Object implements GroupProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
EID_SEPARATOR |
static Pattern |
EID_SEPARATOR_PATTERN |
static String |
QUOTED_SEPARATOR |
static String |
SITE_ROLE_RESOLUTION_ORDER |
| Constructor and Description |
|---|
CourseManagementGroupProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
Map<String,String> |
getGroupRolesForUser(String userEid)
Provides a map of Course Section EIDs (which can be used as AuthzGroup provider IDs)
to Sakai roles for a given user.
|
String |
getRole(String id,
String user)
This method is not longer in use in Sakai.
|
Map<String,String> |
getUserRolesForGroup(String id)
Provides a Map of user IDs to (Sakai) roles for the Course Section EIDs specified
in the input AuthzGroup provider string.
|
boolean |
groupExists(String groupId) |
void |
init() |
String |
packId(String[] ids) |
String |
preferredRole(String one,
String other) |
void |
setCmService(CourseManagementService cmService) |
void |
setConfiguration(Map<String,Object> configuration) |
void |
setRolePreferences(List<String> rolePreferences) |
void |
setRoleResolvers(List<RoleResolver> roleResolvers) |
String[] |
unpackId(String id) |
public static final String SITE_ROLE_RESOLUTION_ORDER
public static String EID_SEPARATOR
public static String QUOTED_SEPARATOR
public static Pattern EID_SEPARATOR_PATTERN
public String getRole(String id, String user)
getRole in interface GroupProviderpublic Map<String,String> getUserRolesForGroup(String id)
getUserRolesForGroup in interface GroupProviderpublic Map<String,String> getGroupRolesForUser(String userEid)
getGroupRolesForUser in interface GroupProviderpublic String packId(String[] ids)
packId in interface GroupProviderpublic String[] unpackId(String id)
unpackId in interface GroupProviderpublic void init()
public void destroy()
public void setCmService(CourseManagementService cmService)
public void setRoleResolvers(List<RoleResolver> roleResolvers)
public String preferredRole(String one, String other)
preferredRole in interface GroupProviderpublic boolean groupExists(String groupId)
groupExists in interface GroupProviderCopyright © 2006–2018 Sakai Project. All rights reserved.