From c0a5d19fa897c532ced3e13e01f18f869270e9a0 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 26 Mar 2015 16:01:25 +0000
Subject: [PATCH] Pass ServerContext object down method calls to the pluggable backend Importer class.
---
opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java b/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
index 6f13f57..7740f75 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/api/Backend.java
@@ -637,15 +637,13 @@
* returns {@code true}. Note that the server will not explicitly
* initialize this backend before calling this method.
*
- * @param importConfig The configuration to use when performing
- * the import.
- *
+ * @param importConfig The configuration to use when performing the import.
+ * @param serverContext The server context
* @return Information about the result of the import processing.
- *
* @throws DirectoryException If a problem occurs while performing
* the LDIF import.
*/
- public abstract LDIFImportResult importLDIF(LDIFImportConfig importConfig)
+ public abstract LDIFImportResult importLDIF(LDIFImportConfig importConfig, ServerContext serverContext)
throws DirectoryException;
/**
@@ -683,8 +681,8 @@
* @throws DirectoryException
* If a Directory Server error occurs.
*/
- public void rebuildBackend(RebuildConfig rebuildConfig) throws InitializationException, ConfigException,
- DirectoryException
+ public void rebuildBackend(RebuildConfig rebuildConfig, ServerContext serverContext)
+ throws InitializationException, ConfigException, DirectoryException
{
throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM,
ERR_INDEXES_NOT_SUPPORTED.get(getBackendID()));
--
Gitblit v1.10.0