public class ConfigPartitionReader extends Object
| Constructor and Description |
|---|
ConfigPartitionReader(org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition configPartition)
Creates a new instance of ConfigPartitionReader.
|
| Modifier and Type | Method and Description |
|---|---|
List<AdsBaseBean> |
read(org.apache.directory.api.ldap.model.name.Dn baseDn,
String name,
org.apache.directory.api.ldap.model.message.SearchScope scope,
boolean mandatory)
Read some configuration element from the DIT using its name
|
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.
|
AdsBaseBean |
readConfig(org.apache.directory.api.ldap.model.entry.Entry entry)
Creates a configuration bean from the given entry.
|
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(org.apache.directory.server.core.partition.impl.btree.AbstractBTreePartition configPartition)
configPartition - the non null config partitionpublic List<AdsBaseBean> read(org.apache.directory.api.ldap.model.name.Dn baseDn, String name, org.apache.directory.api.ldap.model.message.SearchScope scope, boolean mandatory) throws ConfigurationException
ConfigurationExceptionpublic AdsBaseBean readConfig(org.apache.directory.api.ldap.model.entry.Entry entry) throws Exception
entry - any configuration entry of thetype "ads-base"Exceptionpublic 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.LdapExceptionpublic 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.LdapExceptionpublic 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 DITConfigurationExceptionorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic 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 DITConfigurationExceptionCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.