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
ConfigurationException
public AdsBaseBean readConfig(org.apache.directory.api.ldap.model.entry.Entry entry) throws Exception
entry
- any configuration entry of thetype "ads-base"Exception
public 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 © 2018. All rights reserved.