directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r920772 - /directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/message/ModifyRequest.java
Date Tue, 09 Mar 2010 10:22:33 GMT
Author: kayyagari
Date: Tue Mar  9 10:22:33 2010
New Revision: 920772

URL: http://svn.apache.org/viewvc?rev=920772&view=rev
Log:
added another convenient method to add a array of ModificationS

Modified:
    directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/message/ModifyRequest.java

Modified: directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/message/ModifyRequest.java
URL: http://svn.apache.org/viewvc/directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/message/ModifyRequest.java?rev=920772&r1=920771&r2=920772&view=diff
==============================================================================
--- directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/message/ModifyRequest.java
(original)
+++ directory/clients/ldap/trunk/ldap-client-api/src/main/java/org/apache/directory/ldap/client/api/message/ModifyRequest.java
Tue Mar  9 10:22:33 2010
@@ -22,6 +22,7 @@ package org.apache.directory.ldap.client
 
 
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
@@ -185,6 +186,12 @@ public class ModifyRequest extends Abstr
     }
 
 
+    public void addModification( Modification... modifications )
+    {
+        mods.addAll( Arrays.asList( modifications ) );
+    }
+    
+    
     /**
      * @return the target entry's DN
      */



Mime
View raw message