xsul.xpola.groupman.v1
Class GroupManagerImpl

java.lang.Object
  extended byxsul.xpola.groupman.v1.GroupManagerImpl
All Implemented Interfaces:
GroupManager

public class GroupManagerImpl
extends java.lang.Object
implements GroupManager


Constructor Summary
GroupManagerImpl()
           
 
Method Summary
 void addGroup(java.lang.String gname, java.lang.String[] meta)
           
 void addUsersToGroup(java.lang.String[] users, java.lang.String group, java.lang.String[] meta)
          Method addUsersToGroup adds userdns to a group.
 void deleteGroups(java.lang.String[] groupnames)
           
 java.lang.String[] listGroups(java.lang.String[] metadata)
          Method listGroups lists all the groups that match the corresponding metadata.
 java.lang.String[] listUsersOfGroup(java.lang.String group, boolean recurse)
           
 void removeUsersFromGroup(java.lang.String[] users, java.lang.String group)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupManagerImpl

public GroupManagerImpl()
Method Detail

addGroup

public void addGroup(java.lang.String gname,
                     java.lang.String[] meta)
              throws java.lang.Exception
Specified by:
addGroup in interface GroupManager
Throws:
java.lang.Exception

listGroups

public java.lang.String[] listGroups(java.lang.String[] metadata)
                              throws java.lang.Exception
Description copied from interface: GroupManager
Method listGroups lists all the groups that match the corresponding metadata. Metadata could be null.

Specified by:
listGroups in interface GroupManager
Parameters:
metadata - a String[]
Returns:
a String[] for the list of group names
Throws:
java.lang.Exception

listUsersOfGroup

public java.lang.String[] listUsersOfGroup(java.lang.String group,
                                           boolean recurse)
                                    throws java.lang.Exception
Specified by:
listUsersOfGroup in interface GroupManager
Throws:
java.lang.Exception

addUsersToGroup

public void addUsersToGroup(java.lang.String[] users,
                            java.lang.String group,
                            java.lang.String[] meta)
                     throws java.lang.Exception
Description copied from interface: GroupManager
Method addUsersToGroup adds userdns to a group. Users must be existing users. If the group does not exist, it will be created.

Specified by:
addUsersToGroup in interface GroupManager
Parameters:
users - a String[] for a list of user DNs
group - a String for the group name
meta - a String[] for the metadata of the group. For the time being, metadata[0] is the description of the group. Futher information can be added as metadata[1], [2] ... if needed.
Throws:
java.lang.Exception

removeUsersFromGroup

public void removeUsersFromGroup(java.lang.String[] users,
                                 java.lang.String group)
                          throws java.lang.Exception
Specified by:
removeUsersFromGroup in interface GroupManager
Throws:
java.lang.Exception

deleteGroups

public void deleteGroups(java.lang.String[] groupnames)
                  throws java.lang.Exception
Specified by:
deleteGroups in interface GroupManager
Throws:
java.lang.Exception


IU Extreme! Lab (http://www.extreme.indiana.edu)