jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r432637 - in /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi: ItemManagerImpl.java lock/LockManagerImpl.java
Date Fri, 18 Aug 2006 16:43:33 GMT
Author: angela
Date: Fri Aug 18 09:43:32 2006
New Revision: 432637

URL: http://svn.apache.org/viewvc?rev=432637&view=rev
Log:
work in progress

- add TODO for known issue with ItemManager and locking

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemManagerImpl.java
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemManagerImpl.java?rev=432637&r1=432636&r2=432637&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemManagerImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemManagerImpl.java
Fri Aug 18 09:43:32 2006
@@ -75,6 +75,9 @@
  */
 public class ItemManagerImpl implements Dumpable, ItemManager {
 
+    // TODO: needs to be fixed, either by modifying interface or impl. items can be created
from item states obtained from WorkspaceManager.
+    // -->> see LockManagerImpl
+
     private static Logger log = LoggerFactory.getLogger(ItemManagerImpl.class);
 
     private final SessionImpl session;

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java?rev=432637&r1=432636&r2=432637&view=diff
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/lock/LockManagerImpl.java
Fri Aug 18 09:43:32 2006
@@ -84,6 +84,7 @@
         Node lhNode;
         // NOTE: Node must be retrieved from the given NodeState and not from
         // the overlayed workspace nodestate. See below.
+        // TODO: don't rely on state being obtained from SessionISM. see ItemManagerImpl
         Item item = itemManager.getItem(nodeState);
         if (item.isNode()) {
             lhNode = (Node) item;
@@ -365,7 +366,9 @@
             // Lock has never been access -> build the lock object
             // retrieve lock holding node. note that this may fail if the session
             // does not have permission to see this node.
+            // TODO: TO_BE_FIXED. not correct to build Item from state obtained from WorkspaceISM.
see ItemManagerImpl
             Item lockHoldingNode = itemManager.getItem(lockHoldingState);
+
             // TODO: we don;t know if lock is session scoped -> set flag to false
             // TODO: ev. add 'isSessionScoped' to RepositoryService lock-call.
             LockImpl l = new LockImpl(lockHoldingState, (Node)lockHoldingNode, false);
@@ -543,7 +546,6 @@
                     unlocked();
                     break;
                 }
-                // TODO: JSR 283 defines that Lock-Owner is reset upon moved lt
             }
         }
 



Mime
View raw message