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

java.lang.Object
  extended by org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
      extended by org.apache.jetspeed.security.spi.impl.ldap.InitLdapSchema

public class InitLdapSchema
extends AbstractLdapDao


Field Summary
 
Fields inherited from class org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
ctx
 
Constructor Summary
InitLdapSchema()
           Default constructor.
InitLdapSchema(LdapBindingConfig ldapConfig)
           Initializes the LDAP schema.
 
Method Summary
protected  Attributes defineLdapAttributes(String ou)
           A template method for defining the attributes for a particular LDAP class.
protected  String[] getAttributes()
           
protected  String getEntryPrefix()
           A template method that returns the LDAP entry prefix of the concrete DAO.
protected  String getObjectClass()
           
protected  String[] getObjectClasses()
           
protected  String getSearchDomain()
           The domain in wich to perform a search
protected  String getSearchSuffix()
           A template method that returns the LDAP entry prefix of the concrete DAO.
 void initOu(String ou)
           Inits a given ou.
 void initOu(String ou, String folder)
           
 
Methods inherited from class org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao
bindToServer, getGroupAttributes, getGroupFilter, getGroupFilterBase, getGroupIdAttribute, getGroupMembershipAttribute, getGroupMembershipForRoleAttribute, getGroupObjectClasses, getGroupObjectRequiredAttributeClasses, getGroupUidAttribute, getKnownAttributes, getRoleAttributes, getRoleFilter, getRoleFilterBase, getRoleGroupMembershipForRoleAttribute, getRoleIdAttribute, getRoleMembershipAttribute, getRoleObjectClasses, getRoleObjectRequiredAttributeClasses, getRoleUidAttribute, getRootContext, getSearchScope, getSubcontextName, getUidAttribute, getUserAttributes, getUserFilter, getUserFilterBase, getUserGroupMembershipAttribute, getUserIdAttribute, getUserObjectClasses, getUserPasswordAttribute, getUserRoleMembershipAttribute, getUserUidAttribute, lookupByUid, searchByWildcardedUid, searchGroupByWildcardedUid, searchRoleByWildcardedUid, setSearchControls, validateDn, validatePassword, validateUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitLdapSchema

public InitLdapSchema()
               throws org.apache.jetspeed.security.SecurityException

Default constructor.

Throws:
org.apache.jetspeed.security.SecurityException - A SecurityException.

InitLdapSchema

public InitLdapSchema(LdapBindingConfig ldapConfig)
               throws org.apache.jetspeed.security.SecurityException

Initializes the LDAP schema.

Parameters:
ldapConfig - Holds the ldap binding configuration.
Throws:
org.apache.jetspeed.security.SecurityException - A SecurityException.
Method Detail

getObjectClass

protected String getObjectClass()
See Also:
org.apache.jetspeed.security.spi.impl.ldap.AbstractLdapDao#getObjectClass()

initOu

public void initOu(String ou)
            throws NamingException

Inits a given ou.

Parameters:
ou - The org unit.
Throws:
org.apache.jetspeed.security.SecurityException
NamingException

initOu

public void initOu(String ou,
                   String folder)
            throws NamingException
Throws:
NamingException

defineLdapAttributes

protected Attributes defineLdapAttributes(String ou)

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

Parameters:
principalUid - The principal uid.
Returns:
the LDAP attributes object for the particular class.

getEntryPrefix

protected String getEntryPrefix()
Description copied from class: AbstractLdapDao

A template method that returns the LDAP entry prefix of the concrete DAO.

TODO : this should be in spring config

Specified by:
getEntryPrefix in class AbstractLdapDao
Returns:
a String containing the LDAP entry prefix name.

getSearchSuffix

protected String getSearchSuffix()
Description copied from class: AbstractLdapDao

A template method that returns the LDAP entry prefix of the concrete DAO.

TODO : this should be in spring config

Specified by:
getSearchSuffix in class AbstractLdapDao
Returns:
a String containing the LDAP entry prefix name.

getSearchDomain

protected String getSearchDomain()
Description copied from class: AbstractLdapDao

The domain in wich to perform a search

TODO : this should be in spring config

Specified by:
getSearchDomain in class AbstractLdapDao
Returns:
a String containing the LDAP entry prefix name.

getObjectClasses

protected String[] getObjectClasses()
Specified by:
getObjectClasses in class AbstractLdapDao

getAttributes

protected String[] getAttributes()
Specified by:
getAttributes in class AbstractLdapDao


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