From feb5d90ec016c99712f19c5485cf7633cd38f111 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 23 Mar 2007 14:26:04 +0000
Subject: [PATCH] Merge admin framework from config-prototype-branch onto trunk.

---
 opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java b/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
index fb6f307..15626f9 100644
--- a/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
@@ -30,10 +30,10 @@
 import java.util.LinkedHashSet;
 import java.util.Set;
 
+import org.opends.server.admin.std.server.PluginCfg;
 import org.opends.server.api.plugin.DirectoryServerPlugin;
 import org.opends.server.api.plugin.PluginType;
 import org.opends.server.api.plugin.PreParsePluginResult;
-import org.opends.server.config.ConfigEntry;
 import org.opends.server.config.ConfigException;
 import org.opends.server.types.AttributeType;
 import org.opends.server.types.DirectoryConfig;
@@ -57,11 +57,8 @@
  * object class identifier from an attribute descriptions.
  */
 public final class LDAPADListPlugin
-       extends DirectoryServerPlugin
+       extends DirectoryServerPlugin<PluginCfg>
 {
-
-
-
   /**
    * Creates a new instance of this Directory Server plugin.  Every plugin must
    * implement a default constructor (it is the only one that will be used to
@@ -81,14 +78,14 @@
    */
   @Override()
   public final void initializePlugin(Set<PluginType> pluginTypes,
-                                     ConfigEntry configEntry)
+                                     PluginCfg configuration)
          throws ConfigException
   {
     // The set of plugin types must contain only the pre-parse search element.
     if (pluginTypes.isEmpty())
     {
       int    msgID   = MSGID_PLUGIN_ADLIST_NO_PLUGIN_TYPES;
-      String message = getMessage(msgID, String.valueOf(configEntry.getDN()));
+      String message = getMessage(msgID, String.valueOf(configuration.dn()));
       throw new ConfigException(msgID, message);
     }
     else
@@ -99,7 +96,7 @@
         {
           int    msgID   = MSGID_PLUGIN_ADLIST_INVALID_PLUGIN_TYPE;
           String message = getMessage(msgID,
-                                      String.valueOf(configEntry.getDN()),
+                                      String.valueOf(configuration.dn()),
                                       String.valueOf(t));
           throw new ConfigException(msgID, message);
         }

--
Gitblit v1.10.0