From 292765c0ab425e54fc661956b2698b9f74650f5b Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Mon, 06 Dec 2010 08:01:32 +0000
Subject: [PATCH] Improve documentation.

---
 sdk/src/org/opends/sdk/controls/PermissiveModifyRequestControl.java |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/sdk/src/org/opends/sdk/controls/PermissiveModifyRequestControl.java b/sdk/src/org/opends/sdk/controls/PermissiveModifyRequestControl.java
index 3a55a36..6a3442e 100644
--- a/sdk/src/org/opends/sdk/controls/PermissiveModifyRequestControl.java
+++ b/sdk/src/org/opends/sdk/controls/PermissiveModifyRequestControl.java
@@ -31,10 +31,7 @@
 import static com.sun.opends.sdk.messages.Messages.ERR_PERMISSIVE_MODIFY_CONTROL_BAD_OID;
 import static com.sun.opends.sdk.messages.Messages.ERR_PERMISSIVE_MODIFY_INVALID_CONTROL_VALUE;
 
-import org.opends.sdk.ByteString;
-import org.opends.sdk.DecodeException;
-import org.opends.sdk.DecodeOptions;
-import org.opends.sdk.LocalizableMessage;
+import org.opends.sdk.*;
 
 import com.sun.opends.sdk.util.Validator;
 
@@ -43,6 +40,21 @@
 /**
  * The Microsoft defined permissive modify request control. The OID for this
  * control is 1.2.840.113556.1.4.1413, and it does not have a value.
+ * <p>
+ * This control can only be used with LDAP modify requests. It changes the
+ * behavior of the modify operation as follows:
+ * <ul>
+ * <li>Attempts to add an attribute value which already exists will be ignored
+ * and will not cause an {@link ResultCode#ATTRIBUTE_OR_VALUE_EXISTS
+ * AttributeValueExists} error result to be returned.
+ * <li>Attempts to delete an attribute value which does not exist will be
+ * ignored and will not cause an {@link ResultCode#NO_SUCH_ATTRIBUTE
+ * NoSuchAttribute} error result to be returned.
+ * </ul>
+ * In other words, a modify request {@code add} modification <i>ensures</i> that
+ * the attribute contains the specified attribute value, and a {@code delete}
+ * modification <i>ensures</i> that the attribute does not contain the specified
+ * attribute value.
  */
 public final class PermissiveModifyRequestControl implements Control
 {

--
Gitblit v1.10.0