directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1126491 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultModification.java
Date Mon, 23 May 2011 13:42:00 GMT
Author: elecharny
Date: Mon May 23 13:42:00 2011
New Revision: 1126491

URL: http://svn.apache.org/viewvc?rev=1126491&view=rev
Log:
Added some missing constructors

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultModification.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultModification.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultModification.java?rev=1126491&r1=1126490&r2=1126491&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultModification.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/entry/DefaultModification.java
Mon May 23 13:42:00 2011
@@ -72,6 +72,94 @@ public class DefaultModification impleme
         this.attribute = attribute;
     }
 
+
+    /**
+     * Creates a new instance of DefaultModification.
+     *
+     * @param operation The modification operation
+     * @param attributeId The associated attribute ID
+     * @param values the associated values
+     */
+    public DefaultModification( ModificationOperation operation, String attributeId, String...
values )
+    {
+        this.operation = operation;
+        this.attribute = new DefaultAttribute( attributeId, values );
+    }
+
+
+    /**
+     * Creates a new instance of DefaultModification.
+     *
+     * @param operation The modification operation
+     * @param attributeId The associated attribute ID
+     * @param values the associated values
+     */
+    public DefaultModification( ModificationOperation operation, String attributeId, byte[]...
values )
+    {
+        this.operation = operation;
+        this.attribute = new DefaultAttribute( attributeId, values );
+    }
+
+
+    /**
+     * Creates a new instance of DefaultModification.
+     *
+     * @param operation The modification operation
+     * @param attributeId The associated attribute ID
+     * @param values the associated values
+     */
+    public DefaultModification( ModificationOperation operation, String attributeId, Value<?>...
values )
+    {
+        this.operation = operation;
+        this.attribute = new DefaultAttribute( attributeId, values );
+    }
+
+
+    /**
+     * Creates a new instance of DefaultModification.
+     *
+     * @param operation The modification operation
+     * @param attributeType The associated attributeType
+     * @param values the associated values
+     */
+    public DefaultModification( ModificationOperation operation, AttributeType attributeType,
String... values ) 
+        throws LdapInvalidAttributeValueException
+    {
+        this.operation = operation;
+        this.attribute = new DefaultAttribute( attributeType, values );
+    }
+
+
+    /**
+     * Creates a new instance of DefaultModification.
+     *
+     * @param operation The modification operation
+     * @param attributeType The associated attributeType
+     * @param values the associated values
+     */
+    public DefaultModification( ModificationOperation operation, AttributeType attributeType,
byte[]... values )
+    throws LdapInvalidAttributeValueException
+    {
+        this.operation = operation;
+        this.attribute = new DefaultAttribute( attributeType, values );
+    }
+
+
+    /**
+     * Creates a new instance of DefaultModification.
+     *
+     * @param operation The modification operation
+     * @param attributeType The associated attributeType
+     * @param values the associated values
+     */
+    public DefaultModification( ModificationOperation operation, AttributeType attributeType,
Value<?>... values )
+    throws LdapInvalidAttributeValueException
+    {
+        this.operation = operation;
+        this.attribute = new DefaultAttribute( attributeType, values );
+    }
+
+
     /**
      * Creates a new instance of DefaultModification.
      *



Mime
View raw message