public class AllHandsGroupProvider extends Object implements GroupProvider
AllHands GroupProvider allows the creation of provided authzGroups that automatically include all users.
To use, set an authzGroup's external id to one of the following:
| Constructor and Description |
|---|
AllHandsGroupProvider()
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Cleanup before shutting down.
|
Map<String,String> |
getGroupRolesForUser(String userId)
If you can do some type of directory lookup to find out some
Attribute of this user you could conditionally auto-add them
to any number of these "virtual groups"
You might try sakai.students, sakai.faculty,
sakai.staff, sakai.teamleads
There is nothing specific about the string "sakai."
|
Map |
getGroupRolesForUser(String userId,
String academicSessionEid) |
String |
getRole(String id,
String user) |
Map<String,String> |
getUserRolesForGroup(String id)
This is not necessary - because the user has already been added because they are
enrolled in the allhand.s
|
boolean |
groupExists(String arg0) |
void |
init()
Final initialization, once all dependencies are set.
|
String |
packId(String[] ids) |
String |
preferredRole(String one,
String other) |
String[] |
unpackId(String id) |
public void init()
public void destroy()
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 userId)
getGroupRolesForUser in interface GroupProviderpublic Map getGroupRolesForUser(String userId, String academicSessionEid)
getGroupRolesForUser in interface GroupProviderpublic String[] unpackId(String id)
unpackId in interface GroupProviderpublic String packId(String[] ids)
packId in interface GroupProviderpublic String preferredRole(String one, String other)
preferredRole in interface GroupProviderpublic boolean groupExists(String arg0)
groupExists in interface GroupProviderCopyright © 2003–2020 Sakai Project. All rights reserved.