org.rhq.enterprise.server.resource.group
Class LdapGroupManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.resource.group.LdapGroupManagerBean
All Implemented Interfaces:
LdapGroupManagerLocal

public class LdapGroupManagerBean
extends Object
implements LdapGroupManagerLocal

This bean provides functionality to manipulate the ldap auth/authz functionality. That is, adding/modifying/deleting ldap group/users and their associated subjects and permissions are performed by this manager.

Author:
paji, Simeon Pinder

Constructor Summary
LdapGroupManagerBean()
           
 
Method Summary
 void addLdapGroupsToRole(Subject subject, int roleId, List<String> groupNames)
           
 void assignRolesToLdapSubject(int subjectId, List<String> ldapGroupNames)
           
protected  Set<Map<String,String>> buildGroup(Properties options, String filter)
           
 Set<Map<String,String>> findAvailableGroups()
           
 Set<String> findAvailableGroupsFor(String userName)
           
 PageList<LdapGroup> findLdapGroups(PageControl pc)
           
 PageList<LdapGroup> findLdapGroupsByRole(int roleId, PageControl pageControl)
           
 Map<String,String> findLdapUserDetails(String userName)
           
 void removeLdapGroupsFromRole(Subject subject, int roleId, int[] groupIds)
           
 void setLdapGroupsOnRole(Subject subject, int roleId, Set<LdapGroup> groups)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapGroupManagerBean

public LdapGroupManagerBean()
Method Detail

findAvailableGroups

public Set<Map<String,String>> findAvailableGroups()
Specified by:
findAvailableGroups in interface LdapGroupManagerLocal

findAvailableGroupsFor

public Set<String> findAvailableGroupsFor(String userName)
Specified by:
findAvailableGroupsFor in interface LdapGroupManagerLocal

setLdapGroupsOnRole

public void setLdapGroupsOnRole(Subject subject,
                                int roleId,
                                Set<LdapGroup> groups)
Specified by:
setLdapGroupsOnRole in interface LdapGroupManagerLocal

addLdapGroupsToRole

public void addLdapGroupsToRole(Subject subject,
                                int roleId,
                                List<String> groupNames)
Specified by:
addLdapGroupsToRole in interface LdapGroupManagerLocal

removeLdapGroupsFromRole

public void removeLdapGroupsFromRole(Subject subject,
                                     int roleId,
                                     int[] groupIds)
Specified by:
removeLdapGroupsFromRole in interface LdapGroupManagerLocal

assignRolesToLdapSubject

public void assignRolesToLdapSubject(int subjectId,
                                     List<String> ldapGroupNames)
Specified by:
assignRolesToLdapSubject in interface LdapGroupManagerLocal

findLdapGroupsByRole

public PageList<LdapGroup> findLdapGroupsByRole(int roleId,
                                                PageControl pageControl)
Specified by:
findLdapGroupsByRole in interface LdapGroupManagerLocal

findLdapGroups

public PageList<LdapGroup> findLdapGroups(PageControl pc)
Specified by:
findLdapGroups in interface LdapGroupManagerLocal

findLdapUserDetails

public Map<String,String> findLdapUserDetails(String userName)
Specified by:
findLdapUserDetails in interface LdapGroupManagerLocal

buildGroup

protected Set<Map<String,String>> buildGroup(Properties options,
                                             String filter)
Throws:
NamingException
See Also:
UsernamePasswordLoginModule.validatePassword(java.lang.String,java.lang.String)


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.