directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gokt...@apache.org
Subject svn commit: r1228658 - /directory/apacheds/branches/apacheds-osgi/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
Date Sat, 07 Jan 2012 16:48:21 GMT
Author: gokturk
Date: Sat Jan  7 16:48:21 2012
New Revision: 1228658

URL: http://svn.apache.org/viewvc?rev=1228658&view=rev
Log:
* New getRegistrySynchronizerAdaptor() method is added to SchemaPartition:
    This is added to left out the "update schema modifications" process in schema addition
to the schema partition which is requiring AddContext's CoreSession reference which we send
null in this case. 
    So by calling getRegistrySynchronizerAdaptor().add() and getRegistrySynchronizerAdaptor().add()
respectively with 'null' sessioned AddContext reference, one can install a schema using SchemaPartition
reference while preserving schema's consistency.

Modified:
    directory/apacheds/branches/apacheds-osgi/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java

Modified: directory/apacheds/branches/apacheds-osgi/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-osgi/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java?rev=1228658&r1=1228657&r2=1228658&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-osgi/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
(original)
+++ directory/apacheds/branches/apacheds-osgi/core-api/src/main/java/org/apache/directory/server/core/api/schema/SchemaPartition.java
Sat Jan  7 16:48:21 2012
@@ -23,6 +23,8 @@ package org.apache.directory.server.core
 import java.util.ArrayList;
 import java.util.List;
 
+import javax.swing.text.WrappedPlainView;
+
 import org.apache.directory.server.constants.ApacheSchemaConstants;
 import org.apache.directory.server.core.api.CoreSession;
 import org.apache.directory.server.core.api.filtering.EntryFilteringCursor;
@@ -164,6 +166,16 @@ public final class SchemaPartition exten
     {
         return wrapped;
     }
+    
+    /**
+     * Gets the {@link RegistrySynchronizerAdaptor} reference.
+     *
+     * @return the registry synchronizer
+     */
+    public RegistrySynchronizerAdaptor getRegistrySynchronizerAdaptor()
+    {
+        return synchronizer;
+    }
 
 
     /**



Mime
View raw message