org.apache.jetspeed.security.spi.impl.ldap
Class LdapGroupDaoImpl

java.lang.Object
  extended byorg.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
      extended byorg.apache.jetspeed.security.spi.impl.ldap.LdapPrincipalDaoImpl
          extended byorg.apache.jetspeed.security.spi.impl.ldap.LdapGroupDaoImpl
All Implemented Interfaces:
LdapPrincipalDao, LdapReadOnlyPrincipalDao

public class LdapGroupDaoImpl
extends LdapPrincipalDaoImpl

DAO for handling group objects.

Author:
Mike Long

Field Summary
private static String GROUP_CLASSNAME
          The group class name.
private static org.apache.commons.logging.Log LOG
          The logger.
 
Fields inherited from class org.apache.jetspeed.security.spi.impl.ldap.LdapPrincipalDaoImpl
UID_ATTR_NAME
 
Fields inherited from class org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
ctx, defaultDnSuffix, rootContext, rootDn, rootPassword
 
Constructor Summary
LdapGroupDaoImpl()
           Default constructor.
 
Method Summary
protected  Attributes defineLdapAttributes(String principalUid)
           A template method for defining the attributes for a particular LDAP class.
protected  String getObjectClass()
           A template method that returns the LDAP object class of the concrete DAO.
protected  Principal makePrincipal(String principalUid)
           Creates a GroupPrincipal object.
 
Methods inherited from class org.apache.jetspeed.security.spi.impl.ldap.LdapPrincipalDaoImpl
convertUidFromLdapAcceptableName, convertUidToLdapAcceptableName, create, delete, find, getAttribute
 
Methods inherited from class org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
bindToServer, getSubcontextName, lookupByUid, searchByWildcardedUid, setSearchControls, validateDn, validatePassword, validateUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.security.spi.impl.ldap.LdapReadOnlyPrincipalDao
lookupByUid
 

Field Detail

LOG

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


GROUP_CLASSNAME

private static final String GROUP_CLASSNAME
The group class name.

See Also:
Constant Field Values
Constructor Detail

LdapGroupDaoImpl

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

Default constructor.

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

defineLdapAttributes

protected Attributes defineLdapAttributes(String principalUid)

A template method for defining the attributes for a particular LDAP class.

Specified by:
defineLdapAttributes in class LdapPrincipalDaoImpl
Parameters:
principalUid - The principal uid.
Returns:
The LDAP attributes object for the particular class.

makePrincipal

protected Principal makePrincipal(String principalUid)

Creates a GroupPrincipal object.

Specified by:
makePrincipal in class LdapPrincipalDaoImpl
Parameters:
principalUid - The principal uid.
Returns:
A group principal object.

getObjectClass

protected String getObjectClass()

A template method that returns the LDAP object class of the concrete DAO.

Specified by:
getObjectClass in class AbstractLdapDao
Returns:
A String containing the LDAP object class name.


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