mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
19.30.2014 377b2709c64b32fe93905b466482216c2cc0581c
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)
  {