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

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

public class LdapGroupSecurityHandler
extends Object
implements org.apache.jetspeed.security.spi.GroupSecurityHandler

Author:
Mike Long
David Le Strat
See Also:
GroupSecurityHandler

Field Summary
private  LdapPrincipalDao ldap
          The LdapPrincipalDao.
private static org.apache.commons.logging.Log logger
          The logger.
 
Constructor Summary
LdapGroupSecurityHandler()
           Default constructor.
LdapGroupSecurityHandler(LdapPrincipalDao ldap)
           
 
Method Summary
 org.apache.jetspeed.security.GroupPrincipal getGroupPrincipal(String groupPrincipalUid)
           
 List getGroupPrincipals(String filter)
           
private  void logSecurityException(org.apache.jetspeed.security.SecurityException e, String groupPrincipalUid)
           Log the security exception.
 void removeGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
           
 void setGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
           
private  void verifyGroupId(String groupPrincipalUid)
           Verify that the group uid is valid.
private  void verifyGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
           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

LdapGroupSecurityHandler

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

LdapGroupSecurityHandler

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

Default constructor.

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

getGroupPrincipal

public org.apache.jetspeed.security.GroupPrincipal getGroupPrincipal(String groupPrincipalUid)
Specified by:
getGroupPrincipal in interface org.apache.jetspeed.security.spi.GroupSecurityHandler
See Also:
GroupSecurityHandler.getGroupPrincipal(java.lang.String)

verifyGroupId

private void verifyGroupId(String groupPrincipalUid)

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.

setGroupPrincipal

public void setGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
                       throws org.apache.jetspeed.security.SecurityException
Specified by:
setGroupPrincipal in interface org.apache.jetspeed.security.spi.GroupSecurityHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
GroupSecurityHandler.setGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal)

verifyGroupPrincipal

private void verifyGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)

Verify that the group principal is valid.

Parameters:
groupPrincipal - The group principal.

removeGroupPrincipal

public void removeGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal groupPrincipal)
                          throws org.apache.jetspeed.security.SecurityException
Specified by:
removeGroupPrincipal in interface org.apache.jetspeed.security.spi.GroupSecurityHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
GroupSecurityHandler.removeGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal)

getGroupPrincipals

public List getGroupPrincipals(String filter)
Specified by:
getGroupPrincipals in interface org.apache.jetspeed.security.spi.GroupSecurityHandler
See Also:
GroupSecurityHandler.getGroupPrincipals(java.lang.String)


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