public final class ServiceBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.directory.server.core.authn.Authenticator |
createAuthenticator(org.apache.directory.server.config.beans.AuthenticatorBean authenticatorBean)
Creates a Authenticator from the configuration
|
static org.apache.directory.server.core.authn.Authenticator[] |
createAuthenticators(List<org.apache.directory.server.config.beans.AuthenticatorBean> list)
Creates the array of transports read from the DIT
|
static org.apache.directory.server.core.api.changelog.ChangeLog |
createChangeLog(org.apache.directory.server.config.beans.ChangeLogBean changeLogBean)
Read the configuration for the ChangeLog system
|
static org.apache.directory.server.core.api.DirectoryService |
createDirectoryService(org.apache.directory.server.config.beans.DirectoryServiceBean directoryServiceBean,
org.apache.directory.server.core.api.InstanceLayout instanceLayout,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Instantiates a DirectoryService based on the configuration present in the partition
|
static org.apache.directory.server.integration.http.HttpServer |
createHttpServer(org.apache.directory.server.config.beans.HttpServerBean httpServerBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
Instantiates a HttpServer based on the configuration present in the partition
|
static Set<org.apache.directory.server.integration.http.WebApp> |
createHttpWebApps(List<org.apache.directory.server.config.beans.HttpWebAppBean> httpWebAppBeans,
org.apache.directory.server.core.api.DirectoryService directoryService)
Instantiates the HttpWebApps based on the configuration present in the partition
|
static List<org.apache.directory.server.core.api.interceptor.Interceptor> |
createInterceptors(List<org.apache.directory.server.config.beans.InterceptorBean> interceptorBeans)
Creates the Interceptor instances from the configuration
|
static org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex<?> |
createJdbmIndex(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition partition,
org.apache.directory.server.config.beans.JdbmIndexBean jdbmIndexBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
Create a new instance of a JdbmIndex from an instance of JdbmIndexBean
|
static org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition |
createJdbmPartition(org.apache.directory.server.core.api.DirectoryService directoryService,
org.apache.directory.server.config.beans.JdbmPartitionBean jdbmPartitionBean)
Create a new instance of a JdbmPartition
|
static org.apache.directory.server.core.api.journal.Journal |
createJournal(org.apache.directory.server.config.beans.JournalBean journalBean)
Instantiate the Journal object from the stored configuration
|
static org.apache.directory.server.kerberos.kdc.KdcServer |
createKdcServer(org.apache.directory.server.config.beans.DirectoryServiceBean directoryServiceBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
Instantiates a DhcpServer based on the configuration present in the partition
|
static org.apache.directory.server.ldap.LdapServer |
createLdapServer(org.apache.directory.server.config.beans.LdapServerBean ldapServerBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
Instantiates a LdapServer based on the configuration present in the partition
|
static org.apache.directory.server.core.partition.impl.btree.mavibot.MavibotIndex<?> |
createMavibotIndex(org.apache.directory.server.core.partition.impl.btree.mavibot.MavibotPartition partition,
org.apache.directory.server.config.beans.MavibotIndexBean mavobotIndexBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
Create a new instance of a MavibotIndex from an instance of MavibotIndexBean
|
static org.apache.directory.server.core.partition.impl.btree.mavibot.MavibotPartition |
createMavibotPartition(org.apache.directory.server.core.api.DirectoryService directoryService,
org.apache.directory.server.config.beans.MavibotPartitionBean mvbtPartitionBean) |
static org.apache.directory.server.ntp.NtpServer |
createNtpServer(org.apache.directory.server.config.beans.NtpServerBean ntpServerBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
Instantiates a NtpServer based on the configuration present in the partition
|
static org.apache.directory.server.core.api.partition.Partition |
createPartition(org.apache.directory.server.core.api.DirectoryService directoryService,
org.apache.directory.server.config.beans.PartitionBean partitionBean)
Create the a Partition instantiated from the configuration
|
static Map<String,org.apache.directory.server.core.api.partition.Partition> |
createPartitions(org.apache.directory.server.core.api.DirectoryService directoryService,
List<org.apache.directory.server.config.beans.PartitionBean> partitionBeans)
Create the set of Partitions instantiated from the configuration
|
static org.apache.directory.server.core.api.authn.ppolicy.PasswordPolicyConfiguration |
createPwdPolicyConfig(org.apache.directory.server.config.beans.PasswordPolicyBean passwordPolicyBean)
creates the PassworddPolicyConfiguration object after reading the config entry containing pwdpolicy OC
|
static List<org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer> |
createReplConsumers(List<org.apache.directory.server.config.beans.ReplConsumerBean> replConsumerBeans)
instantiate the ReplicationConsumers based on the configuration present in ReplConsumerBeans
|
static org.apache.directory.server.ldap.handlers.sasl.MechanismHandler |
createSaslMechHandler(org.apache.directory.server.config.beans.SaslMechHandlerBean saslMechHandlerBean)
Loads and instantiates a MechanismHandler from the configuration entry
|
static org.apache.directory.server.protocol.shared.transport.Transport |
createTransport(org.apache.directory.server.config.beans.TransportBean transportBean)
Creates a Transport from the configuration
|
static org.apache.directory.server.protocol.shared.transport.Transport[] |
createTransports(org.apache.directory.server.config.beans.TransportBean[] transportBeans)
Creates the array of transports read from the DIT
|
static List<org.apache.directory.api.ldap.model.ldif.LdifEntry> |
readTestEntries(String entryFilePath)
Load the Test entries
|
public static List<org.apache.directory.server.core.api.interceptor.Interceptor> createInterceptors(List<org.apache.directory.server.config.beans.InterceptorBean> interceptorBeans) throws org.apache.directory.api.ldap.model.exception.LdapException
dirServiceDN - the Dn under which interceptors are configuredException - If the instanciation failedorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic static org.apache.directory.server.core.api.authn.ppolicy.PasswordPolicyConfiguration createPwdPolicyConfig(org.apache.directory.server.config.beans.PasswordPolicyBean passwordPolicyBean)
PasswordPolicyBean - The Bean containing the PasswordPolicy configurationPasswordPolicyConfiguration object, null if the pwdpolicy entry is not present or disabledpublic static org.apache.directory.server.core.api.changelog.ChangeLog createChangeLog(org.apache.directory.server.config.beans.ChangeLogBean changeLogBean)
changelogBean - The Bean containing the ChangeLog configurationpublic static org.apache.directory.server.core.api.journal.Journal createJournal(org.apache.directory.server.config.beans.JournalBean journalBean)
changelogBean - The Bean containing the ChangeLog configurationpublic static List<org.apache.directory.api.ldap.model.ldif.LdifEntry> readTestEntries(String entryFilePath) throws org.apache.directory.server.config.ConfigurationException
entryFilePath - The place on disk where the test entries are storedorg.apache.directory.server.config.ConfigurationException - If we weren't able to read the entriespublic static org.apache.directory.server.ldap.handlers.sasl.MechanismHandler createSaslMechHandler(org.apache.directory.server.config.beans.SaslMechHandlerBean saslMechHandlerBean)
throws org.apache.directory.server.config.ConfigurationException
saslMechHandlerEntry - the entry of OC type ConfigSchemaConstants#ADS_LDAP_SERVER_SASL_MECH_HANDLER_OCorg.apache.directory.server.config.ConfigurationException - if the SASL mechanism handler cannot be createdpublic static org.apache.directory.server.core.authn.Authenticator createAuthenticator(org.apache.directory.server.config.beans.AuthenticatorBean authenticatorBean)
throws org.apache.directory.server.config.ConfigurationException
authenticatorBean - The created instance of authenticatororg.apache.directory.server.config.ConfigurationExceptionpublic static org.apache.directory.server.protocol.shared.transport.Transport createTransport(org.apache.directory.server.config.beans.TransportBean transportBean)
transportBean - The created instance of transportpublic static org.apache.directory.server.core.authn.Authenticator[] createAuthenticators(List<org.apache.directory.server.config.beans.AuthenticatorBean> list) throws org.apache.directory.server.config.ConfigurationException
transportBeans - The array of Transport configurationorg.apache.directory.server.config.ConfigurationExceptionpublic static org.apache.directory.server.protocol.shared.transport.Transport[] createTransports(org.apache.directory.server.config.beans.TransportBean[] transportBeans)
transportBeans - The array of Transport configurationpublic static org.apache.directory.server.ntp.NtpServer createNtpServer(org.apache.directory.server.config.beans.NtpServerBean ntpServerBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
throws org.apache.directory.api.ldap.model.exception.LdapException
ntpServerBean - The NtpServerBean containing the NtpServer configurationorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic static org.apache.directory.server.kerberos.kdc.KdcServer createKdcServer(org.apache.directory.server.config.beans.DirectoryServiceBean directoryServiceBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
throws org.apache.directory.api.ldap.model.exception.LdapException
dhcpServerBean - The DhcpServerBean containing the DhcpServer configurationkdcServerBean - The KdcServerBean containing the KdcServer configurationorg.apache.directory.api.ldap.model.exception.LdapException - public static DhcpServer createDhcpServer( DhcpServerBean dhcpServerBean, DirectoryService directoryService ) throws LdapException
{
// Fist, do nothing if the DhcpServer is disabled
if ( !dhcpServerBean.isEnabled() )
{
return null;
}
DhcpServer dhcpServer = new DhcpServer();
// The service ID
dhcpServer.setServiceId( dhcpServerBean.getServerId() );
// The transports
Transport[] transports = createTransports( dhcpServerBean.getTransports() );
dhcpServer.setTransports( transports );
return dhcpServer;
}
/**
Instantiates a KdcServer based on the configuration present in the partitionorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic static Set<org.apache.directory.server.integration.http.WebApp> createHttpWebApps(List<org.apache.directory.server.config.beans.HttpWebAppBean> httpWebAppBeans, org.apache.directory.server.core.api.DirectoryService directoryService) throws org.apache.directory.api.ldap.model.exception.LdapException
httpWebAppBeans - The list of HttpWebAppBeans containing the HttpWebAppBeans configurationorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic static org.apache.directory.server.integration.http.HttpServer createHttpServer(org.apache.directory.server.config.beans.HttpServerBean httpServerBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
throws org.apache.directory.api.ldap.model.exception.LdapException
httpServerBean - The HttpServerBean containing the HttpServer configurationorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic static org.apache.directory.server.ldap.LdapServer createLdapServer(org.apache.directory.server.config.beans.LdapServerBean ldapServerBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
throws org.apache.directory.api.ldap.model.exception.LdapException
ldapServerBean - The LdapServerBean containing the LdapServer configurationorg.apache.directory.api.ldap.model.exception.LdapExceptionpublic static List<org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer> createReplConsumers(List<org.apache.directory.server.config.beans.ReplConsumerBean> replConsumerBeans) throws org.apache.directory.server.config.ConfigurationException
replConsumerBeans - the list of consumers configuredorg.apache.directory.server.config.ConfigurationExceptionpublic static org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex<?> createJdbmIndex(org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition partition,
org.apache.directory.server.config.beans.JdbmIndexBean jdbmIndexBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
JdbmIndexBean - The JdbmIndexBean to convertException - If the instance cannot be createdpublic static org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition createJdbmPartition(org.apache.directory.server.core.api.DirectoryService directoryService,
org.apache.directory.server.config.beans.JdbmPartitionBean jdbmPartitionBean)
throws org.apache.directory.server.config.ConfigurationException
jdbmPartitionBean - the JdbmPartition beanorg.apache.directory.api.ldap.model.exception.LdapInvalidDnExceptionException - If the instance cannot be createdorg.apache.directory.server.config.ConfigurationExceptionpublic static org.apache.directory.server.core.api.partition.Partition createPartition(org.apache.directory.server.core.api.DirectoryService directoryService,
org.apache.directory.server.config.beans.PartitionBean partitionBean)
throws org.apache.directory.server.config.ConfigurationException
partitionBean - the Partition beanorg.apache.directory.server.config.ConfigurationException - If we cannot process the Partitionpublic static Map<String,org.apache.directory.server.core.api.partition.Partition> createPartitions(org.apache.directory.server.core.api.DirectoryService directoryService, List<org.apache.directory.server.config.beans.PartitionBean> partitionBeans) throws org.apache.directory.server.config.ConfigurationException
partitionBeans - the list of Partition beansorg.apache.directory.server.config.ConfigurationException - If we cannot process some Partitionpublic static org.apache.directory.server.core.api.DirectoryService createDirectoryService(org.apache.directory.server.config.beans.DirectoryServiceBean directoryServiceBean,
org.apache.directory.server.core.api.InstanceLayout instanceLayout,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
throws Exception
directoryServiceBean - The bean containing the configurationbaseDirectory - The working path for this DirectoryServiceExceptionpublic static org.apache.directory.server.core.partition.impl.btree.mavibot.MavibotPartition createMavibotPartition(org.apache.directory.server.core.api.DirectoryService directoryService,
org.apache.directory.server.config.beans.MavibotPartitionBean mvbtPartitionBean)
throws org.apache.directory.server.config.ConfigurationException
org.apache.directory.server.config.ConfigurationExceptionpublic static org.apache.directory.server.core.partition.impl.btree.mavibot.MavibotIndex<?> createMavibotIndex(org.apache.directory.server.core.partition.impl.btree.mavibot.MavibotPartition partition,
org.apache.directory.server.config.beans.MavibotIndexBean mavobotIndexBean,
org.apache.directory.server.core.api.DirectoryService directoryService)
MavibotIndexBean - The MavibotIndexBean to convertException - If the instance cannot be createdCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.