jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r702392 - in /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version: AbstractVersionManager.java InternalVersionHistory.java InternalVersionHistoryImpl.java VersionManager.java
Date Tue, 07 Oct 2008 08:52:08 GMT
Author: jukka
Date: Tue Oct  7 01:52:07 2008
New Revision: 702392

URL: http://svn.apache.org/viewvc?rev=702392&view=rev
Log:
JCR-1775: Transaction-safe versioning

Removed unused hasVersion() method.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistory.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImpl.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java?rev=702392&r1=702391&r2=702392&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/AbstractVersionManager.java
Tue Oct  7 01:52:07 2008
@@ -115,14 +115,6 @@
         return hasItem(id);
     }
 
-    /**
-     * {@inheritDoc}
-     */
-    public boolean hasVersion(NodeId id) {
-        // lock handling via hasItem()
-        return hasItem(id);
-    }
-
     //-------------------------------------------------------< implementation >
 
     /**

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistory.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistory.java?rev=702392&r1=702391&r2=702392&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistory.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistory.java
Tue Oct  7 01:52:07 2008
@@ -51,15 +51,6 @@
     boolean hasVersion(Name versionName);
 
     /**
-     * Checks if the version for the given uuid exists in this history.
-     *
-     * @param id the id of the version
-     * @return <code>true</code> if the version exists;
-     *         <code>false</code> otherwise.
-     */
-    boolean hasVersion(NodeId id);
-
-    /**
      * Returns the version with the given uuid or <code>null</code> if the
      * respective version does not exist.
      *

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImpl.java?rev=702392&r1=702391&r2=702392&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/InternalVersionHistoryImpl.java
Tue Oct  7 01:52:07 2008
@@ -277,13 +277,6 @@
     /**
      * {@inheritDoc}
      */
-    public boolean hasVersion(NodeId id) {
-        return nameCache.containsValue(id);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
     public InternalVersion getVersion(NodeId id) {
         InternalVersion v = (InternalVersion) versionCache.get(id);
         if (v == null) {

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java?rev=702392&r1=702391&r2=702392&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/version/VersionManager.java
Tue Oct  7 01:52:07 2008
@@ -127,14 +127,6 @@
             throws RepositoryException;
 
     /**
-     * Checks if the version with the given id exists
-     *
-     * @param id
-     * @return <code>true</code> if the version exists.
-     */
-    boolean hasVersion(NodeId id);
-
-    /**
      * Returns the version with the given id
      *
      * @param id



Mime
View raw message