xsul.xpola.groupman
Class GroupmanMemImpl

java.lang.Object
  extended byxsul.xpola.groupman.GroupmanAbstractImpl
      extended byxsul.xpola.groupman.GroupmanMemImpl
All Implemented Interfaces:
GroupManager

public class GroupmanMemImpl
extends GroupmanAbstractImpl


Constructor Summary
GroupmanMemImpl()
           
 
Method Summary
 void addGroup(java.lang.String gname, java.lang.String[] metadata)
           
 void addUsersToGroup(java.lang.String[] unames, java.lang.String gname, java.lang.String[] metadata)
          Method addUsersToGroup adds userdns to a group.
 void deleteGroups(java.lang.String[] gnames)
           
 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 gname, boolean brec)
           
 void removeUsersFromGroup(java.lang.String[] unames, java.lang.String gname)
           
 
Methods inherited from class xsul.xpola.groupman.GroupmanAbstractImpl
addGroup, addUsersToGroup, deleteGroups, listGroups, listUsersOfGroup, removeUsersFromGroup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupmanMemImpl

public GroupmanMemImpl()
Method Detail

addGroup

public void addGroup(java.lang.String gname,
                     java.lang.String[] metadata)
              throws java.lang.Exception
Throws:
java.lang.Exception

deleteGroups

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

addUsersToGroup

public void addUsersToGroup(java.lang.String[] unames,
                            java.lang.String gname,
                            java.lang.String[] metadata)
                     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.

Parameters:
unames - a String[] for a list of user DNs
gname - a String for the group name
metadata - 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

listUsersOfGroup

public java.lang.String[] listUsersOfGroup(java.lang.String gname,
                                           boolean brec)
                                    throws java.lang.Exception
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
Overrides:
listGroups in class GroupmanAbstractImpl
Throws:
java.lang.Exception

removeUsersFromGroup

public void removeUsersFromGroup(java.lang.String[] unames,
                                 java.lang.String gname)
                          throws java.lang.Exception
Throws:
java.lang.Exception


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