directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1728307 - /directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/api/ldap/schema/manager/impl/DefaultSchemaManager.java
Date Wed, 03 Feb 2016 13:39:21 GMT
Author: elecharny
Date: Wed Feb  3 13:39:20 2016
New Revision: 1728307

URL: http://svn.apache.org/viewvc?rev=1728307&view=rev
Log:
Added a constructor to be able to create a default SchemaManager in relaxed mode

Modified:
    directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/api/ldap/schema/manager/impl/DefaultSchemaManager.java

Modified: directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/api/ldap/schema/manager/impl/DefaultSchemaManager.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/api/ldap/schema/manager/impl/DefaultSchemaManager.java?rev=1728307&r1=1728306&r2=1728307&view=diff
==============================================================================
--- directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/api/ldap/schema/manager/impl/DefaultSchemaManager.java
(original)
+++ directory/shared/trunk/ldap/schema/data/src/main/java/org/apache/directory/api/ldap/schema/manager/impl/DefaultSchemaManager.java
Wed Feb  3 13:39:20 2016
@@ -120,8 +120,6 @@ public class DefaultSchemaManager implem
 
     /**
      * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader
-     *
-     * @param loader The schema loader to use
      */
     public DefaultSchemaManager() throws Exception
     {
@@ -135,6 +133,23 @@ public class DefaultSchemaManager implem
         loadAllEnabled();
     }
 
+    /**
+     * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader
+     *
+     * @param relaxed If teh schema  manager should be relaxed or not
+     */
+    public DefaultSchemaManager( boolean relaxed ) throws Exception
+    {
+        // Default to the the root (one schemaManager for all the entries
+        namingContext = Dn.ROOT_DSE;
+        this.schemaLoader = new JarLdifSchemaLoader();
+        errors = new ArrayList<Throwable>();
+        registries = new Registries();
+        factory = new SchemaEntityFactory();
+        isRelaxed = relaxed;
+        loadAllEnabled();
+    }
+
 
     /**
      * Creates a new instance of DefaultSchemaManager with the default schema schemaLoader



Mime
View raw message