public class ConfigPartitionReader extends Object
Constructor and Description |
---|
ConfigPartitionReader(AbstractBTreePartition configPartition)
Creates a new instance of ConfigPartitionReader.
|
Modifier and Type | Method and Description |
---|---|
ConfigBean |
readConfig()
Read the configuration from the DIT, returning a bean containing all of it.
|
ConfigBean |
readConfig(org.apache.directory.api.ldap.model.name.Dn baseDn)
Read the configuration from the DIT, returning a bean containing all of it.
|
ConfigBean |
readConfig(org.apache.directory.api.ldap.model.name.Dn baseDn,
String objectClass)
Read the configuration from the DIT, returning a bean containing all of it.
|
ConfigBean |
readConfig(String baseDn)
Read the configuration from the DIT, returning a bean containing all of it.
|
ConfigBean |
readConfig(String baseDn,
String objectClass)
Read the configuration from the DIT, returning a bean containing all of it.
|
public ConfigPartitionReader(AbstractBTreePartition configPartition)
configPartition
- the non null config partitionpublic ConfigBean readConfig() throws org.apache.directory.api.ldap.model.exception.LdapException
This method implicitly uses "ou=config" as base Dn
ConfigurationException
- If we had some issue reading the configurationorg.apache.directory.api.ldap.model.exception.LdapException
public ConfigBean readConfig(String baseDn) throws org.apache.directory.api.ldap.model.exception.LdapException
base
- The base Dn in the DIT where the configuration is storedConfigurationException
- If we had some issue reading the configurationorg.apache.directory.api.ldap.model.exception.LdapException
public ConfigBean readConfig(org.apache.directory.api.ldap.model.name.Dn baseDn) throws ConfigurationException
base
- The base Dn in the DIT where the configuration is storedConfigurationException
- If we had some issue reading the configurationpublic ConfigBean readConfig(String baseDn, String objectClass) throws org.apache.directory.api.ldap.model.exception.LdapException
baseDn
- The base Dn in the DIT where the configuration is storedobjectClass
- The element to read from the DITConfigurationException
org.apache.directory.api.ldap.model.exception.LdapException
public ConfigBean readConfig(org.apache.directory.api.ldap.model.name.Dn baseDn, String objectClass) throws ConfigurationException
baseDn
- The base Dn in the DIT where the configuration is storedobjectClass
- The element to read from the DITConfigurationException
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.