From 70d3c6a9d98e5b002fda985a8ac0a60c0cb79026 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 04 Oct 2006 21:47:08 +0000
Subject: [PATCH] Add a new org.opends.server.types.DirectoryConfig class that can be used to expose a number of the methods from the DirectoryServer class as part of the public interface while reducing the need for extensions to reference code in the org.opends.server.core package.
---
opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java b/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
index 33e3435..95c944c 100644
--- a/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/EntryUUIDPlugin.java
@@ -42,12 +42,12 @@
import org.opends.server.api.plugin.PreOperationPluginResult;
import org.opends.server.config.ConfigEntry;
import org.opends.server.config.ConfigException;
-import org.opends.server.core.DirectoryServer;
import org.opends.server.protocols.asn1.ASN1OctetString;
import org.opends.server.types.Attribute;
import org.opends.server.types.AttributeType;
import org.opends.server.types.AttributeUsage;
import org.opends.server.types.AttributeValue;
+import org.opends.server.types.DirectoryConfig;
import org.opends.server.types.Entry;
import org.opends.server.types.LDIFImportConfig;
import org.opends.server.types.operation.PreOperationAddOperation;
@@ -106,12 +106,13 @@
// Get the entryUUID attribute type. This needs to be done in the
// constructor in order to make the associated variables "final".
- AttributeType at = DirectoryServer.getAttributeType(ENTRYUUID);
+ AttributeType at = DirectoryConfig.getAttributeType(ENTRYUUID,
+ false);
if (at == null)
{
at = new AttributeType(ENTRYUUID, Collections.singleton(ENTRYUUID),
ENTRYUUID, null, null,
- DirectoryServer.getDefaultAttributeSyntax(),
+ DirectoryConfig.getDefaultAttributeSyntax(),
AttributeUsage.DIRECTORY_OPERATION, false, true,
false, true);
}
@@ -125,13 +126,11 @@
* {@inheritDoc}
*/
@Override()
- public final void initializePlugin(DirectoryServer directoryServer,
- Set<PluginType> pluginTypes,
- ConfigEntry configEntry)
+ public final void initializePlugin(Set<PluginType> pluginTypes,
+ ConfigEntry configEntry)
throws ConfigException
{
assert debugEnter(CLASS_NAME, "initializePlugin",
- String.valueOf(directoryServer),
String.valueOf(pluginTypes),
String.valueOf(configEntry));
--
Gitblit v1.10.0