* @throws ConfigurationException
*/
public ConfigBean readConfig( Dn baseDn, String objectClass ) throws ConfigurationException
{
LOG.debug( "Reading configuration for the {} element, from {} ", objectClass, baseDn );
ConfigBean configBean = new ConfigBean();
if ( baseDn == null )
{
baseDn = configPartition.getSuffixDn();
}
List<AdsBaseBean> beans = read( baseDn, objectClass, SearchScope.ONELEVEL, true );
if ( LOG.isDebugEnabled() )
{
if ( ( beans == null ) || ( beans.size() == 0 ) )
{
LOG.debug( "No {} element to read", objectClass );
}
else
{
LOG.debug( beans.get( 0 ).toString() );
}
}
configBean.setDirectoryServiceBeans( beans );
return configBean;
}