directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r681893 - in /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog: MemoryChangeLogStore.java TaggableChangeLogStore.java
Date Fri, 01 Aug 2008 23:04:44 GMT
Author: kayyagari
Date: Fri Aug  1 16:04:44 2008
New Revision: 681893

URL: http://svn.apache.org/viewvc?rev=681893&view=rev
Log:
TaggableChangeLogStore - added a new method to remove a Tag created for a revision
MemoryChangeLogStore - implemented the new method created for removing a Tag

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

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java?rev=681893&r1=681892&r2=681893&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/MemoryChangeLogStore.java
Fri Aug  1 16:04:44 2008
@@ -469,4 +469,15 @@
     {
         return latest;
     }
+
+
+    /**
+     * @see TaggableChangeLogStore#removeTag(long)
+     */
+    public Tag removeTag( long revision ) throws Exception
+    {
+        return tags.remove( revision );
+    }
+    
+    
 }

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java?rev=681893&r1=681892&r2=681893&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/TaggableChangeLogStore.java
Fri Aug  1 16:04:44 2008
@@ -68,4 +68,14 @@
      * @throws Exception on failures to access the tag store
      */
     Tag getLatest() throws Exception;
+    
+    
+    /**
+     * Removes a Tag created for a given revision.
+     *
+     * @param revision the revision number that was tagged
+     * @return the removed tag, null if there is no Tag present with the given revision
+     * @throws Exception on failures to access the tag store
+     */
+    Tag removeTag( long revision ) throws Exception;
 }



Mime
View raw message