org.rhq.enterprise.server.resource.group
Class LdapGroupManagerBean
java.lang.Object
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
|
Method Summary |
void |
addLdapGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
List<String> groupNames)
|
void |
assignRolesToLdapSubject(int subjectId,
List<String> ldapGroupNames)
|
protected Set<Map<String,String>> |
buildGroup(Properties systemConfig,
String filter)
|
Set<Map<String,String>> |
findAvailableGroups()
|
Set<String> |
findAvailableGroupsFor(String userName)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.LdapGroup> |
findLdapGroups(org.rhq.core.domain.util.PageControl pc)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.LdapGroup> |
findLdapGroupsByRole(int roleId,
org.rhq.core.domain.util.PageControl pageControl)
|
Map<String,String> |
findLdapUserDetails(String userName)
|
void |
removeLdapGroupsFromRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
int[] groupIds)
|
void |
setLdapGroupsOnRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
Set<org.rhq.core.domain.resource.group.LdapGroup> groups)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LdapGroupManagerBean
public LdapGroupManagerBean()
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(org.rhq.core.domain.auth.Subject subject,
int roleId,
Set<org.rhq.core.domain.resource.group.LdapGroup> groups)
- Specified by:
setLdapGroupsOnRole in interface LdapGroupManagerLocal
addLdapGroupsToRole
public void addLdapGroupsToRole(org.rhq.core.domain.auth.Subject subject,
int roleId,
List<String> groupNames)
- Specified by:
addLdapGroupsToRole in interface LdapGroupManagerLocal
removeLdapGroupsFromRole
public void removeLdapGroupsFromRole(org.rhq.core.domain.auth.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 org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.LdapGroup> findLdapGroupsByRole(int roleId,
org.rhq.core.domain.util.PageControl pageControl)
- Specified by:
findLdapGroupsByRole in interface LdapGroupManagerLocal
findLdapGroups
public org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.group.LdapGroup> findLdapGroups(org.rhq.core.domain.util.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 systemConfig,
String filter)
- Throws:
NamingException- See Also:
UsernamePasswordLoginModule.validatePassword(java.lang.String,java.lang.String)
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.