directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r681463 - in /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog: ChangeLog.java DefaultChangeLog.java
Date Thu, 31 Jul 2008 19:58:02 GMT
Author: kayyagari
Date: Thu Jul 31 12:58:02 2008
New Revision: 681463

URL: http://svn.apache.org/viewvc?rev=681463&view=rev
Log:
made the changelog partition suffix configurable
included the default values for the same

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLog.java
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLog.java?rev=681463&r1=681462&r2=681463&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLog.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLog.java
Thu Jul 31 12:58:02 2008
@@ -186,4 +186,10 @@
     void setExposeChangeLog( boolean exposeChangeLog );
     
     boolean isExposeChangeLog();
+    
+    void setPartitionSuffix( String suffix );
+    
+    void setRevOuSuffix( String revOuSuffix );
+    
+    void setTagOuSuffix( String tagOuSuffix );
 }

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java?rev=681463&r1=681462&r2=681463&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/DefaultChangeLog.java
Thu Jul 31 12:58:02 2008
@@ -41,6 +41,11 @@
 
     private boolean exposeChangeLog;
 
+    // default values for ChangeLogStorePartition containers
+    private String partitionSuffix = "ou=changelog";
+    private String revOuSuffix = "ou=revisions";
+    private String tagOuSuffix = "ou=tags";
+
 
     public ChangeLogStore getChangeLogStore()
     {
@@ -185,12 +190,12 @@
         if ( enabled )
         {
             store.init( service );
-            
-            if( exposeChangeLog && isTagSearchSupported() )
+
+            if ( exposeChangeLog && isTagSearchSupported() )
             {
-                Partition partition = ( ( TaggableSearchableChangeLogStore ) store ).getPartition();
+                Partition partition = ( ( TaggableSearchableChangeLogStore ) store ).getPartition(
partitionSuffix, revOuSuffix, tagOuSuffix );
                 partition.init( service );
-                
+
                 service.addPartition( partition );
             }
         }
@@ -226,4 +231,22 @@
         this.exposeChangeLog = exposeChangeLog;
     }
 
+
+    public void setPartitionSuffix( String suffix )
+    {
+        this.partitionSuffix = suffix;
+    }
+
+
+    public void setRevOuSuffix( String revOuSuffix )
+    {
+        this.revOuSuffix = revOuSuffix;
+    }
+
+
+    public void setTagOuSuffix( String tagOuSuffix )
+    {
+        this.tagOuSuffix = tagOuSuffix;
+    }
+
 }



Mime
View raw message