directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r681783 - in /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog: ChangeLog.java DefaultChangeLog.java TaggableSearchableChangeLogStore.java
Date Fri, 01 Aug 2008 19:05:37 GMT
Author: kayyagari
Date: Fri Aug  1 12:05:36 2008
New Revision: 681783

URL: http://svn.apache.org/viewvc?rev=681783&view=rev
Log:
fixed misleading method names
added missing javadoc
renamed method arguments to macth the expected values

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
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.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=681783&r1=681782&r2=681783&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
Fri Aug  1 12:05:36 2008
@@ -187,9 +187,24 @@
     
     boolean isExposeChangeLog();
     
+    /**
+     * The prefix of the partition. Default value is <i>ou=changelog</i>.
+     *
+     * @param suffix suffix value to be set for the changelog partition
+     */
     void setPartitionSuffix( String suffix );
     
-    void setRevOuSuffix( String revOuSuffix );
+    /**
+     * The name of the revisions container under the partition. Default value is ou=revisions

+     *
+     * @param revContainerName the name of the revisions container
+     */
+    void setRevisionsContainerName( String revContainerName );
     
-    void setTagOuSuffix( String tagOuSuffix );
+    /**
+     * The name of the tags container under the partition. Default value is ou=tags 
+     *
+     * @param tagContainerName the name of the revisions container
+     */
+    void setTagsContainerName( String tagContainerName );
 }

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=681783&r1=681782&r2=681783&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
Fri Aug  1 12:05:36 2008
@@ -43,8 +43,8 @@
 
     // default values for ChangeLogStorePartition containers
     private String partitionSuffix = "ou=changelog";
-    private String revOuSuffix = "ou=revisions";
-    private String tagOuSuffix = "ou=tags";
+    private String revContainerName = "ou=revisions";
+    private String tagContainerName = "ou=tags";
 
 
     public ChangeLogStore getChangeLogStore()
@@ -193,7 +193,7 @@
 
             if ( exposeChangeLog && isTagSearchSupported() )
             {
-                Partition partition = ( ( TaggableSearchableChangeLogStore ) store ).getPartition(
partitionSuffix, revOuSuffix, tagOuSuffix );
+                Partition partition = ( ( TaggableSearchableChangeLogStore ) store ).getPartition(
partitionSuffix, revContainerName, tagContainerName );
                 partition.init( service );
 
                 service.addPartition( partition );
@@ -220,33 +220,48 @@
     }
 
 
+    /**
+     * @see ChangeLog#isExposeChangeLog()
+     */
     public boolean isExposeChangeLog()
     {
         return exposeChangeLog;
     }
 
 
+    /**
+     * @see ChangeLog#setExposeChangeLog(boolean)
+     */
     public void setExposeChangeLog( boolean exposeChangeLog )
     {
         this.exposeChangeLog = exposeChangeLog;
     }
 
 
+    /**
+     * @see ChangeLog#setPartitionSuffix(String)
+     */
     public void setPartitionSuffix( String suffix )
     {
         this.partitionSuffix = suffix;
     }
 
 
-    public void setRevOuSuffix( String revOuSuffix )
+    /**
+     * @see ChangeLog#setRevisionsContainerName(String)
+     */
+    public void setRevisionsContainerName( String revContainerName )
     {
-        this.revOuSuffix = revOuSuffix;
+        this.revContainerName = revContainerName;
     }
 
 
-    public void setTagOuSuffix( String tagOuSuffix )
+    /**
+     * @see ChangeLog#setTagsContainerName(String)
+     */
+    public void setTagsContainerName( String tagContainerName )
     {
-        this.tagOuSuffix = tagOuSuffix;
+        this.tagContainerName = tagContainerName;
     }
 
 }

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java?rev=681783&r1=681782&r2=681783&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableSearchableChangeLogStore.java
Fri Aug  1 12:05:36 2008
@@ -49,10 +49,10 @@
      *    <li>ou=revisions,ou=changelog</li> 
      * 
      * @param partitionSuffix the suffix of the partition e.x ou=chnagelog
-     * @param revOuSuffix the container for holding the revisions ex. ou=revisions
-     * @param tagOuSuffix the container for holding the tags ex. ou=tags
+     * @param revContainerName the container's name for holding the revisions ex. ou=revisions
+     * @param tagContainerName the container's name for holding the tags ex. ou=tags
      * 
      * @return the partial-write enabled uninitialized partition
      */
-    Partition getPartition( String partitionSuffix, String revOuSuffix, String tagOuSuffix
);
+    Partition getPartition( String partitionSuffix, String revContainerName, String tagContainerName
);
 }



Mime
View raw message