org.apache.jetspeed.security.spi.impl
Class LdapRoleSecurityHandler

java.lang.Object
  extended by org.apache.jetspeed.security.spi.impl.LdapRoleSecurityHandler
All Implemented Interfaces:
org.apache.jetspeed.security.spi.RoleSecurityHandler

public class LdapRoleSecurityHandler
extends Object
implements org.apache.jetspeed.security.spi.RoleSecurityHandler


Field Summary
private  LdapPrincipalDao ldap
          The LdapPrincipalDao.
private static org.apache.commons.logging.Log logger
          The logger.
 
Constructor Summary
LdapRoleSecurityHandler()
           Default constructor.
LdapRoleSecurityHandler(LdapPrincipalDao ldap)
           
 
Method Summary
 org.apache.jetspeed.security.RolePrincipal getRolePrincipal(String roleFullPathName)
           
 List getRolePrincipals(String filter)
           
private  void logSecurityException(org.apache.jetspeed.security.SecurityException e, String groupPrincipalUid)
           Log the security exception.
 void removeRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
           
 void setRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
           
private  void verifyRoleId(String rolePrincipalUid)
           Verify that the group uid is valid.
private  void verifyRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
           Verify that the group principal is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger
The logger.


ldap

private LdapPrincipalDao ldap
The LdapPrincipalDao.

Constructor Detail

LdapRoleSecurityHandler

public LdapRoleSecurityHandler(LdapPrincipalDao ldap)
Parameters:
ldap - The LdapPrincipalDao.

LdapRoleSecurityHandler

public LdapRoleSecurityHandler()
                        throws NamingException,
                               org.apache.jetspeed.security.SecurityException

Default constructor.

Throws:
NamingException - A NamingException.
org.apache.jetspeed.security.SecurityException - A SecurityException.
Method Detail

getRolePrincipal

public org.apache.jetspeed.security.RolePrincipal getRolePrincipal(String roleFullPathName)
Specified by:
getRolePrincipal in interface org.apache.jetspeed.security.spi.RoleSecurityHandler

setRolePrincipal

public void setRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
                      throws org.apache.jetspeed.security.SecurityException
Specified by:
setRolePrincipal in interface org.apache.jetspeed.security.spi.RoleSecurityHandler
Throws:
org.apache.jetspeed.security.SecurityException

removeRolePrincipal

public void removeRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)
                         throws org.apache.jetspeed.security.SecurityException
Specified by:
removeRolePrincipal in interface org.apache.jetspeed.security.spi.RoleSecurityHandler
Throws:
org.apache.jetspeed.security.SecurityException

getRolePrincipals

public List getRolePrincipals(String filter)
Specified by:
getRolePrincipals in interface org.apache.jetspeed.security.spi.RoleSecurityHandler

verifyRoleId

private void verifyRoleId(String rolePrincipalUid)

Verify that the group uid is valid.

Parameters:
groupPrincipalUid - The group uid.

logSecurityException

private void logSecurityException(org.apache.jetspeed.security.SecurityException e,
                                  String groupPrincipalUid)

Log the security exception.

Parameters:
e - The SecurityException.
groupPrincipalUid - The group principal uid.

verifyRolePrincipal

private void verifyRolePrincipal(org.apache.jetspeed.security.RolePrincipal rolePrincipal)

Verify that the group principal is valid.

Parameters:
groupPrincipal - The group principal.


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.