jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1404655 - in /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr: SessionImpl.java WorkspaceImpl.java
Date Thu, 01 Nov 2012 16:09:17 GMT
Author: angela
Date: Thu Nov  1 16:09:17 2012
New Revision: 1404655

URL: http://svn.apache.org/viewvc?rev=1404655&view=rev
Log:
OAK-250 : Enforce jcr constraints for 'protected' items (WIP)

- add FIXME comment including issue reference for Workspace and Session operations that need
to check for protected items

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java?rev=1404655&r1=1404654&r2=1404655&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/SessionImpl.java
Thu Nov  1 16:09:17 2012
@@ -255,6 +255,7 @@ public class SessionImpl extends Abstrac
     public void move(final String srcAbsPath, final String destAbsPath) throws RepositoryException
{
         ensureIsAlive();
 
+        // FIXME: check for protection on src-parent and dest-parent (OAK-250)
         dlg.perform(new SessionOperation<Void>() {
             @Override
             public Void perform() throws RepositoryException {

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java?rev=1404655&r1=1404654&r2=1404655&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/WorkspaceImpl.java
Thu Nov  1 16:09:17 2012
@@ -96,6 +96,8 @@ public class WorkspaceImpl implements Ja
             throw new UnsupportedRepositoryOperationException("Not implemented.");
         }
 
+        // FIXME: check for protection on src-parent and dest-parent (OAK-250)
+
         String oakPath = sessionDelegate.getOakPathKeepIndexOrThrowNotFound(destAbsPath);
         String oakName = PathUtils.getName(oakPath);
         // handle index
@@ -112,7 +114,9 @@ public class WorkspaceImpl implements Ja
     public void clone(String srcWorkspace, String srcAbsPath, String destAbsPath, boolean
removeExisting) throws RepositoryException {
         ensureIsAlive();
 
-        // TODO -> SPI
+        // TODO
+        // FIXME: check for protection on src-parent and dest-parent (OAK-250)
+
         throw new UnsupportedRepositoryOperationException("Not implemented.");
     }
 
@@ -120,6 +124,8 @@ public class WorkspaceImpl implements Ja
     public void move(String srcAbsPath, String destAbsPath) throws RepositoryException {
         ensureIsAlive();
 
+        // FIXME: check for protection on src-parent and dest-parent (OAK-250)
+
         String oakPath = sessionDelegate.getOakPathKeepIndexOrThrowNotFound(destAbsPath);
         String oakName = PathUtils.getName(oakPath);
         // handle index



Mime
View raw message