From 70298b0c8e01f5df3a5f766f3624bed0ac8c2695 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 31 Aug 2007 22:06:04 +0000
Subject: [PATCH] Fix issue 1734: Admin framework: refactor client APIs
---
opends/src/server/org/opends/server/admin/client/ldap/LDAPManagementContext.java | 38 ++++----------------------------------
1 files changed, 4 insertions(+), 34 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/client/ldap/LDAPManagementContext.java b/opends/src/server/org/opends/server/admin/client/ldap/LDAPManagementContext.java
index 6828bc9..9e107dc 100644
--- a/opends/src/server/org/opends/server/admin/client/ldap/LDAPManagementContext.java
+++ b/opends/src/server/org/opends/server/admin/client/ldap/LDAPManagementContext.java
@@ -55,20 +55,15 @@
return new LDAPManagementContext(connection, LDAPProfile.getInstance());
}
- // The LDAP connection.
- private final LDAPConnection connection;
-
- // The LDAP profile which should be used to construct LDAP requests
- // and decode LDAP responses.
- private final LDAPProfile profile;
+ // The LDAP management context driver.
+ private final LDAPDriver driver;
// Private constructor.
private LDAPManagementContext(LDAPConnection connection,
LDAPProfile profile) {
- this.connection = connection;
- this.profile = profile;
+ this.driver = new LDAPDriver(connection, profile);
}
@@ -77,31 +72,6 @@
* {@inheritDoc}
*/
public ManagedObject<RootCfgClient> getRootConfigurationManagedObject() {
- return LDAPManagedObject.getRootManagedObject(this);
- }
-
-
-
- /**
- * Gets the LDAP connection used for interacting with the server.
- *
- * @return Returns the LDAP connection used for interacting with the
- * server.
- */
- LDAPConnection getLDAPConnection() {
- return connection;
- }
-
-
-
- /**
- * Gets the LDAP profile which should be used to construct LDAP
- * requests and decode LDAP responses.
- *
- * @return Returns the LDAP profile which should be used to
- * construct LDAP requests and decode LDAP responses.
- */
- LDAPProfile getLDAPProfile() {
- return profile;
+ return LDAPManagedObject.getRootManagedObject(driver);
}
}
--
Gitblit v1.10.0