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

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

public class LdapRoleSecurityHandler
extends java.lang.Object
implements RoleSecurityHandler


Constructor Summary
LdapRoleSecurityHandler()
           Default constructor.
LdapRoleSecurityHandler(LdapPrincipalDao ldap)
           
 
Method Summary
 RolePrincipal getRolePrincipal(java.lang.String roleFullPathName)
           Gets the role principal for the role full path name {principal}.{subprincipal}.
 java.util.List getRolePrincipals(java.lang.String filter)
           Gets the an iterator of role principals for a given filter.
 void removeRolePrincipal(RolePrincipal rolePrincipal)
           Removes the role principal.
 void setRolePrincipal(RolePrincipal rolePrincipal)
           Sets the role principal in the backing store.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapRoleSecurityHandler

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

LdapRoleSecurityHandler

public LdapRoleSecurityHandler()
                        throws javax.naming.NamingException,
                               SecurityException

Default constructor.

Throws:
javax.naming.NamingException - A NamingException.
SecurityException - A SecurityException.
Method Detail

getRolePrincipal

public RolePrincipal getRolePrincipal(java.lang.String roleFullPathName)
Description copied from interface: RoleSecurityHandler

Gets the role principal for the role full path name {principal}.{subprincipal}.

Specified by:
getRolePrincipal in interface RoleSecurityHandler
Parameters:
roleFullPathName - The role full path name.
Returns:
The Principal


setRolePrincipal

public void setRolePrincipal(RolePrincipal rolePrincipal)
                      throws SecurityException
Description copied from interface: RoleSecurityHandler

Sets the role principal in the backing store.

Specified by:
setRolePrincipal in interface RoleSecurityHandler
Parameters:
rolePrincipal - The RolePrincipal.
Throws:
SecurityException - Throws a SecurityException.

removeRolePrincipal

public void removeRolePrincipal(RolePrincipal rolePrincipal)
                         throws SecurityException
Description copied from interface: RoleSecurityHandler

Removes the role principal.

Specified by:
removeRolePrincipal in interface RoleSecurityHandler
Parameters:
rolePrincipal - The RolePrincipal.
Throws:
SecurityException - Throws a SecurityException.

getRolePrincipals

public java.util.List getRolePrincipals(java.lang.String filter)
Description copied from interface: RoleSecurityHandler

Gets the an iterator of role principals for a given filter.

Specified by:
getRolePrincipals in interface RoleSecurityHandler
Parameters:
filter - The filter.
Returns:
The list of Principal


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