All Implemented Interfaces:
A Sakai GroupProvider that utilizes the CourseManagementService and the
CmMappingService to supply authz data to Sakai. This implementation uses
a list of RoleResolvers, which can be used to resolve a user's role in a section
based on memberships in parent objects such as CourseSets.
Methods inherited from class java.lang.
Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
String getRole( String id,
This method is not longer in use in Sakai. It should be removed from the
id - The external group id.
user - The user Id.
Returns: the role name for this particular user in the external group, or null if none.
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.
id - The external group id. This will need to be unpacked if the provider supports packing.
This may be
null if the context doesn't have a provider ID set..
Returns: the user id - role name map for all users in the external group, if id isn't found or is null
then an empty collection should be returned.
Map< String, String> getGroupRolesForUser( String userEid,
Access the external group id - role name map for this user in the given acadEid.
userEid - The user id.
academicSessionEid - The acad EID
Returns: the the external group id - role name map for this users in the given acadEid. (may be empty).
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.
userEid - The user id.
Returns: the the external group id - role name map for this users in all external groups. (may be empty).
String unpackId( String id)
Unpack a possibly compound id into it's component ids, returning at least the id unchanged if not compound.
id - The external realm id. This may be
Returns: a String array of one or more ids upacked from this possibly compound id, if
null was supplied
return an empty array.
public void destroy()
String preferredRole( String one,
Return one or the other of these role names - pick the one that if a user has both, is the more powerful one to give the user as their single role.
one - A role name. May be null!
other - Another role name. May be null!
Returns: The better role.
Copyright © 2003–2019 The Sakai Foundation. All rights reserved.