From b77612553229173bbec2535082d76df995c46ba3 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 27 Nov 2012 23:43:28 +0000 Subject: [PATCH] remove non use constructor git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1414472 13f79535-47bb-0310-9956-ffa450edef68 --- .../ConfigurableLdapConnectionFactory.java | 28 +---------------- .../LdapConnectionConfiguration.java | 31 +------------------ 2 files changed, 2 insertions(+), 57 deletions(-) diff --git a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java index 2d6861f6..a3ac6f82 100644 --- a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java +++ b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/ConfigurableLdapConnectionFactory.java @@ -40,49 +40,23 @@ import java.util.Properties; public class ConfigurableLdapConnectionFactory implements LdapConnectionFactory { - /** - * - */ + private String hostname; - /** - * - */ private int port; - /** - * - */ private boolean ssl; - /** - * - */ private String baseDn; - /** - * - */ private String contextFactory; - /** - * - */ private String bindDn; - /** - * - */ private String password; - /** - * - */ private String authenticationMethod; - /** - * - */ private Properties extraProperties; private LdapConnectionConfiguration configuration; diff --git a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnectionConfiguration.java b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnectionConfiguration.java index 52470c3a..b0717f3e 100644 --- a/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnectionConfiguration.java +++ b/redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/connection/LdapConnectionConfiguration.java @@ -72,36 +72,7 @@ public class LdapConnectionConfiguration public LdapConnectionConfiguration() { - } - - public LdapConnectionConfiguration( String hostname, int port, LdapName baseDn, String contextFactory, - LdapName bindDn, String password, String authenticationMethod, - Properties extraProperties ) - throws LdapException - { - this.hostname = hostname; - - this.port = port; - - if ( baseDn != null ) - { - this.baseDn = new LdapName( baseDn.getRdns() ); - } - - this.contextFactory = contextFactory; - - if ( bindDn != null ) - { - this.bindDn = new LdapName( bindDn.getRdns() ); - } - - this.password = password; - - this.authenticationMethod = authenticationMethod; - - this.extraProperties = extraProperties; - - check(); + // no op } public LdapConnectionConfiguration( String hostname, int port, String baseDn, String contextFactory, String bindDn,