public class ConfigPartitionReader extends Object
Constructor and Description |
---|
ConfigPartitionReader(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(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
baseDn
- The base Dn in the DIT where the configuration is storedname
- The element to readscope
- The search scopemandatory
- If the element is mandatory or notConfigurationException
- If the configuration cannot be readpublic AdsBaseBean readConfig(org.apache.directory.api.ldap.model.entry.Entry entry) throws Exception
entry
- any configuration entry of the type "ads-base"Exception
- If the configuration cannot be readpublic 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
baseDn
- 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
baseDn
- 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
- If the configuration cannot be readorg.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
- If the configuration cannot be readCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.