directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1621898 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifEntry.java
Date Mon, 01 Sep 2014 23:46:22 GMT
Author: elecharny
Date: Mon Sep  1 23:46:21 2014
New Revision: 1621898

URL: http://svn.apache.org/r1621898
Log:
Added a constructor which takes a SchemaManager as a parameter

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifEntry.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifEntry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifEntry.java?rev=1621898&r1=1621897&r2=1621898&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifEntry.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifEntry.java
Mon Sep  1 23:46:21 2014
@@ -47,6 +47,7 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.message.ResultCodeEnum;
 import org.apache.directory.api.ldap.model.name.Dn;
 import org.apache.directory.api.ldap.model.name.Rdn;
+import org.apache.directory.api.ldap.model.schema.SchemaManager;
 import org.apache.directory.api.util.Base64;
 import org.apache.directory.api.util.Strings;
 
@@ -119,6 +120,20 @@ public class LdifEntry implements Clonea
         entryDn = null;
         controls = null;
     }
+    
+    
+    /**
+     * Creates a new schema aware LdifEntry object.
+     */
+    public LdifEntry( SchemaManager schemaManager )
+    {
+        changeType = ChangeType.None; // Default LDIF content
+        modificationList = new LinkedList<Modification>();
+        modifications = new HashMap<String, Modification>();
+        entry = new DefaultEntry( schemaManager, ( Dn ) null );
+        entryDn = null;
+        controls = null;
+    }
 
 
     /**



Mime
View raw message