From 507e00fb190713b1654579123d284bcd3d750abe Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 10 Apr 2013 10:31:19 +0000
Subject: [PATCH] Partial fix for OPENDJ-693: Implement modify/update support

---
 opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Config.java |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Config.java b/opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Config.java
index cca57bd..101e53d 100644
--- a/opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Config.java
+++ b/opendj3/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Config.java
@@ -30,15 +30,17 @@
     private final ReadOnUpdatePolicy readOnUpdatePolicy;
     private final Schema schema;
     private final boolean useSubtreeDelete;
+    private final boolean usePermissiveModify;
 
     Config(final ConnectionFactory factory, final ReadOnUpdatePolicy readOnUpdatePolicy,
             final AuthorizationPolicy authzPolicy, final AuthzIdTemplate proxiedAuthzTemplate,
-            final boolean useSubtreeDelete, final Schema schema) {
+            final boolean useSubtreeDelete, final boolean usePermissiveModify, final Schema schema) {
         this.factory = factory;
         this.readOnUpdatePolicy = readOnUpdatePolicy;
         this.authzPolicy = authzPolicy;
         this.proxiedAuthzTemplate = proxiedAuthzTemplate;
         this.useSubtreeDelete = useSubtreeDelete;
+        this.usePermissiveModify = usePermissiveModify;
         this.schema = schema;
         this.options = new DecodeOptions().setSchema(schema);
     }
@@ -88,6 +90,17 @@
     }
 
     /**
+     * Returns {@code true} if modify requests should include the permissive
+     * modify control.
+     *
+     * @return {@code true} if modify requests should include the permissive
+     *         modify control.
+     */
+    boolean usePermissiveModify() {
+        return usePermissiveModify;
+    }
+
+    /**
      * Returns {@code true} if delete requests should include the subtree delete
      * control.
      *

--
Gitblit v1.10.0