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

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

public class LdapGroupSecurityHandler
extends java.lang.Object
implements GroupSecurityHandler

Author:
Mike Long
David Le Strat
See Also:
GroupSecurityHandler

Constructor Summary
LdapGroupSecurityHandler()
           Default constructor.
LdapGroupSecurityHandler(LdapPrincipalDao ldap)
           
 
Method Summary
 GroupPrincipal getGroupPrincipal(java.lang.String groupPrincipalUid)
           Gets the group principal for the group full path name {principal}.{subprincipal}.
 java.util.List getGroupPrincipals(java.lang.String filter)
           Gets the an iterator of group principals for a given filter.
 void removeGroupPrincipal(GroupPrincipal groupPrincipal)
           Removes the group principal.
 void setGroupPrincipal(GroupPrincipal groupPrincipal)
           Sets the group 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

LdapGroupSecurityHandler

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

LdapGroupSecurityHandler

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

Default constructor.

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

getGroupPrincipal

public GroupPrincipal getGroupPrincipal(java.lang.String groupPrincipalUid)
Description copied from interface: GroupSecurityHandler

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

Specified by:
getGroupPrincipal in interface GroupSecurityHandler
Parameters:
groupPrincipalUid - The group full path name.
Returns:
The Principal

See Also:
GroupSecurityHandler.getGroupPrincipal(java.lang.String)

setGroupPrincipal

public void setGroupPrincipal(GroupPrincipal groupPrincipal)
                       throws SecurityException
Description copied from interface: GroupSecurityHandler

Sets the group principal in the backing store.

Specified by:
setGroupPrincipal in interface GroupSecurityHandler
Parameters:
groupPrincipal - The GroupPrincipal.
Throws:
SecurityException - Throws a SecurityException.
See Also:
GroupSecurityHandler.setGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal)

removeGroupPrincipal

public void removeGroupPrincipal(GroupPrincipal groupPrincipal)
                          throws SecurityException
Description copied from interface: GroupSecurityHandler

Removes the group principal.

Specified by:
removeGroupPrincipal in interface GroupSecurityHandler
Parameters:
groupPrincipal - The GroupPrincipal.
Throws:
SecurityException - Throws a SecurityException.
See Also:
GroupSecurityHandler.removeGroupPrincipal(org.apache.jetspeed.security.GroupPrincipal)

getGroupPrincipals

public java.util.List getGroupPrincipals(java.lang.String filter)
Description copied from interface: GroupSecurityHandler

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

Specified by:
getGroupPrincipals in interface GroupSecurityHandler
Parameters:
filter - The filter.
Returns:
The list of Principal
See Also:
GroupSecurityHandler.getGroupPrincipals(java.lang.String)


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