us.openinternet.luge.transformer
Class GroupTransformer

java.lang.Object
  |
  +--us.openinternet.luge.transformer.GroupTransformer

public class GroupTransformer
extends java.lang.Object


Constructor Summary
GroupTransformer(LugeTransformer lt)
           
 
Method Summary
 boolean addGroup(java.util.Hashtable groupAtts)
           
 boolean addGroup(java.lang.String grpCN)
           
 java.util.Hashtable addMembersToGroup(java.util.ArrayList uids, java.lang.String grpCN)
           
 boolean deleteAttributeFromGroup(java.lang.String grpCN, java.lang.String attr, java.lang.String value)
          Delete a specific value from an attribute or delete all the values of an attribute
 boolean deleteGroup(java.lang.String grpCN)
           
 java.util.ArrayList getAllGroups()
          Returns a ArrayList with the cn of all groups under the groupBase (set in the application's bootstrap properties)
 java.util.Hashtable getGroupAttributes(java.lang.String groupCN, java.lang.String[] attrs)
          Same as groupLookupArray method except you can specify what attributes you want returned.
 java.util.ArrayList getGroupMembers(java.lang.String grpCN)
           
 java.util.ArrayList getGroupsForUser(java.lang.String uid)
          Also knowns as getMemberships in the Facade
 java.util.Hashtable groupLookupArray(java.lang.String groupCN)
          Use this method to lookup all attributes of a group.
 boolean modifyGroup(java.lang.String groupCN, java.util.Hashtable modifyAttrs, boolean appendAttr)
           
 java.util.Hashtable removeMembersFromGroup(java.util.ArrayList uids, java.lang.String grpCN)
           
 boolean renameGroup(java.lang.String oldCN, java.lang.String newCN)
           
 java.util.Hashtable searchGroups(java.lang.String filter, java.lang.String[] attrs, int timeLimit)
          The preferred method for searching groups.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupTransformer

public GroupTransformer(LugeTransformer lt)
                 throws LugeException
Method Detail

modifyGroup

public boolean modifyGroup(java.lang.String groupCN,
                           java.util.Hashtable modifyAttrs,
                           boolean appendAttr)
                    throws LugeException
LugeException

renameGroup

public boolean renameGroup(java.lang.String oldCN,
                           java.lang.String newCN)
                    throws LugeException
LugeException

addGroup

public boolean addGroup(java.lang.String grpCN)
                 throws LugeException
LugeException

addGroup

public boolean addGroup(java.util.Hashtable groupAtts)
                 throws LugeException
LugeException

deleteGroup

public boolean deleteGroup(java.lang.String grpCN)
                    throws LugeException
LugeException

addMembersToGroup

public java.util.Hashtable addMembersToGroup(java.util.ArrayList uids,
                                             java.lang.String grpCN)
                                      throws LugeException
LugeException

removeMembersFromGroup

public java.util.Hashtable removeMembersFromGroup(java.util.ArrayList uids,
                                                  java.lang.String grpCN)
                                           throws LugeException
LugeException

getGroupsForUser

public java.util.ArrayList getGroupsForUser(java.lang.String uid)
                                     throws LugeException
Also knowns as getMemberships in the Facade

LugeException

searchGroups

public java.util.Hashtable searchGroups(java.lang.String filter,
                                        java.lang.String[] attrs,
                                        int timeLimit)
                                 throws LugeException
The preferred method for searching groups. Use the SearchVO object to set the filter and the SimpleFacade.searchGroups(svo) to access this method.

LugeException

getAllGroups

public java.util.ArrayList getAllGroups()
                                 throws LugeException
Returns a ArrayList with the cn of all groups under the groupBase (set in the application's bootstrap properties)

LugeException

groupLookupArray

public java.util.Hashtable groupLookupArray(java.lang.String groupCN)
                                     throws LugeException
Use this method to lookup all attributes of a group. If there are DNs in the member attribute, they will be stripped to only the names. Does not return objectclass or other non-material attributes.

LugeException

getGroupAttributes

public java.util.Hashtable getGroupAttributes(java.lang.String groupCN,
                                              java.lang.String[] attrs)
                                       throws LugeException
Same as groupLookupArray method except you can specify what attributes you want returned.

LugeException

getGroupMembers

public java.util.ArrayList getGroupMembers(java.lang.String grpCN)
                                    throws LugeException
LugeException

deleteAttributeFromGroup

public boolean deleteAttributeFromGroup(java.lang.String grpCN,
                                        java.lang.String attr,
                                        java.lang.String value)
                                 throws LugeException
Delete a specific value from an attribute or delete all the values of an attribute

LugeException

Copyright 2003, Michael Schwartz All Rights Reserved.