From 4204e17ef5a801f50836310143394d801229ba3b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 04 Sep 2007 01:55:31 +0000
Subject: [PATCH] Update the LDIFPluginResult object to provide the ability to specify a reject message that explains why the entry should not be imported/exported.
---
opends/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java | 15 ++++-----------
1 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/opends/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java b/opends/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java
index e7e0f32..ceb5d5e 100644
--- a/opends/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/SevenBitCleanPlugin.java
@@ -82,15 +82,6 @@
/**
- * The result that should be returned if an imported entry fails the 7-bit
- * clean check.
- */
- private static final LDIFPluginResult LDIF_FAILURE_RESULT =
- new LDIFPluginResult(false, false);
-
-
-
- /**
* The result that should be returned if a pre-parse operation fails the 7-bit
* clean check.
*/
@@ -210,7 +201,10 @@
{
if (! is7BitClean(v.getValue()))
{
- return LDIF_FAILURE_RESULT;
+ Message rejectMessage =
+ ERR_PLUGIN_7BIT_IMPORT_ATTR_NOT_CLEAN.get(
+ a.getNameWithOptions());
+ return new LDIFPluginResult(false, false, rejectMessage);
}
}
}
@@ -219,7 +213,6 @@
// If we've gotten here, then everything is acceptable.
-System.err.println(" The entry is acceptable");
return LDIFPluginResult.SUCCESS;
}
--
Gitblit v1.10.0