From e0c5b184252862e29ca271955bcd15eebd752830 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 05 Jul 2007 17:16:26 +0000
Subject: [PATCH] Update the import-ldif utility so that it includes a new "--countRejects" option that can be used to count the number of rejected entries. That value will be used as the exit code, and can be used in scripts to determine if there were any failures during the import.
---
opends/src/server/org/opends/server/api/Backend.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/api/Backend.java b/opends/src/server/org/opends/server/api/Backend.java
index f756d59..a9842b6 100644
--- a/opends/src/server/org/opends/server/api/Backend.java
+++ b/opends/src/server/org/opends/server/api/Backend.java
@@ -51,6 +51,7 @@
import org.opends.server.types.InitializationException;
import org.opends.server.types.LDIFExportConfig;
import org.opends.server.types.LDIFImportConfig;
+import org.opends.server.types.LDIFImportResult;
import org.opends.server.types.LockManager;
import org.opends.server.types.RestoreConfig;
import org.opends.server.types.WritabilityMode;
@@ -492,10 +493,13 @@
* @param importConfig The configuration to use when performing
* the import.
*
+ * @return Information about the result of the import processing.
+ *
* @throws DirectoryException If a problem occurs while performing
* the LDIF import.
*/
- public abstract void importLDIF(LDIFImportConfig importConfig)
+ public abstract LDIFImportResult importLDIF(
+ LDIFImportConfig importConfig)
throws DirectoryException;
--
Gitblit v1.10.0