| java.lang.Object org.sakaiproject.provider.authzGroup.AllHandsGroupProvider
AllHandsGroupProvider | public class AllHandsGroupProvider implements GroupProvider(Code) | |
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:
|
Method Summary | |
public void | destroy() Cleanup before shutting down. | public Map | 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." these could
easily be something like course.eecs280, shib:yale.edu:faculty,
or h23.groups.ruk.dk
One caveat - this class is respnsbile for handling the unpacking
when an admin wants to put in multiple external providers
The code below uses the common convention of using "+" (homage
to "or") to concatenate IDs. | public String | getRole(String id, String user) | public Map | getUserRolesForGroup(String id) | public void | init() Final initialization, once all dependencies are set. | public String | packId(String[] ids) | public String | preferredRole(String one, String other) | public String[] | unpackId(String id) |
AllHandsGroupProvider | public AllHandsGroupProvider()(Code) | | Construct.
|
destroy | public void destroy()(Code) | | Cleanup before shutting down.
|
getGroupRolesForUser | public Map getGroupRolesForUser(String userId)(Code) | | 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." these could
easily be something like course.eecs280, shib:yale.edu:faculty,
or h23.groups.ruk.dk
One caveat - this class is respnsbile for handling the unpacking
when an admin wants to put in multiple external providers
The code below uses the common convention of using "+" (homage
to "or") to concatenate IDs. So the user above us could set the
provider ID in the Sakai Realms Tool to be
h23.groups.ruk.dk+course.eecs280
to indicate thatr membership in either group is OK.
To indicate membership in multiple groups in *this routine* add
additional entries in the hash map (i.e. do not use the + notation
in this routine).
|
getUserRolesForGroup | public Map getUserRolesForGroup(String id)(Code) | | This is not necessary - because the user has already been added because they are
enrolled in the allhand.s
|
init | public void init()(Code) | | Final initialization, once all dependencies are set.
|
|
|