From 377b2709c64b32fe93905b466482216c2cc0581c Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 19 Mar 2014 16:30:32 +0000
Subject: [PATCH] OPENDJ-1368 (CR-3232) Remove AttributeValue
---
opendj3-server-dev/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java b/opendj3-server-dev/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java
index e276834..50d087d 100644
--- a/opendj3-server-dev/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java
+++ b/opendj3-server-dev/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java
@@ -26,8 +26,6 @@
*/
package org.opends.server.plugins;
-
-
import java.util.List;
import java.util.Set;
@@ -36,7 +34,9 @@
import org.opends.server.admin.std.meta.PluginCfgDefn;
import org.opends.server.admin.std.server.SevenBitCleanPluginCfg;
import org.opends.server.admin.std.server.PluginCfg;
-import org.opends.server.api.plugin.*;
+import org.opends.server.api.plugin.DirectoryServerPlugin;
+import org.opends.server.api.plugin.PluginResult;
+import org.opends.server.api.plugin.PluginType;
import org.forgerock.opendj.config.server.ConfigException;
import org.opends.server.core.DirectoryServer;
import org.opends.server.types.*;
@@ -49,8 +49,6 @@
import static org.opends.messages.PluginMessages.*;
-
-
/**
* This class implements a Directory Server plugin that can be used to ensure
* that the values for a specified set of attributes (optionally, below a
@@ -172,9 +170,9 @@
{
for (Attribute a : attrList)
{
- for (AttributeValue v : a)
+ for (ByteString v : a)
{
- if (! is7BitClean(v.getValue()))
+ if (!is7BitClean(v))
{
LocalizableMessage rejectMessage =
ERR_PLUGIN_7BIT_IMPORT_ATTR_NOT_CLEAN.get(
@@ -239,9 +237,9 @@
continue;
}
- for (AttributeValue v : a)
+ for (ByteString v : a)
{
- if (! is7BitClean(v.getValue()))
+ if (!is7BitClean(v))
{
return PluginResult.PreParse.stopProcessing(
ResultCode.CONSTRAINT_VIOLATION,
@@ -317,9 +315,9 @@
continue;
}
- for (AttributeValue v : a)
+ for (ByteString v : a)
{
- if (! is7BitClean(v.getValue()))
+ if (!is7BitClean(v))
{
return PluginResult.PreParse.stopProcessing(
ResultCode.CONSTRAINT_VIOLATION,
@@ -384,7 +382,7 @@
continue;
}
- if (! is7BitClean(newRDN.getAttributeValue(i).getValue()))
+ if (!is7BitClean(newRDN.getAttributeValue(i)))
{
return PluginResult.PreParse.stopProcessing(
ResultCode.CONSTRAINT_VIOLATION,
@@ -474,6 +472,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public boolean isConfigurationChangeAcceptable(
SevenBitCleanPluginCfg configuration,
List<LocalizableMessage> unacceptableReasons)
@@ -507,6 +506,7 @@
/**
* {@inheritDoc}
*/
+ @Override
public ConfigChangeResult applyConfigurationChange(
SevenBitCleanPluginCfg configuration)
{
--
Gitblit v1.10.0