jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1353972 - in /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr: Descriptors.java ObservationManagerImpl.java
Date Tue, 26 Jun 2012 11:56:13 GMT
Author: mduerig
Date: Tue Jun 26 11:56:12 2012
New Revision: 1353972

URL: http://svn.apache.org/viewvc?rev=1353972&view=rev
Log:
OAK-144: Implement observation
- set option.observation.supported=true
- throw UnsupportedRepositoryException from ObservationManagerImpl

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Descriptors.java
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ObservationManagerImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Descriptors.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Descriptors.java?rev=1353972&r1=1353971&r2=1353972&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Descriptors.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Descriptors.java
Tue Jun 26 11:56:12 2012
@@ -19,12 +19,13 @@
 
 package org.apache.jackrabbit.oak.jcr;
 
+import java.util.HashMap;
+import java.util.Map;
+
 import javax.jcr.PropertyType;
 import javax.jcr.Repository;
 import javax.jcr.Value;
 import javax.jcr.ValueFactory;
-import java.util.HashMap;
-import java.util.Map;
 
 import static javax.jcr.Repository.IDENTIFIER_STABILITY;
 import static javax.jcr.Repository.LEVEL_1_SUPPORTED;
@@ -164,7 +165,7 @@ public class Descriptors {
                 trueValue, true, true));
         put(new Descriptor(
                 OPTION_OBSERVATION_SUPPORTED,
-                falseValue, true, true));
+                trueValue, true, true));
         put(new Descriptor(
                 OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED,
                 trueValue, true, true));

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ObservationManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ObservationManagerImpl.java?rev=1353972&r1=1353971&r2=1353972&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ObservationManagerImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/ObservationManagerImpl.java
Tue Jun 26 11:56:12 2012
@@ -23,6 +23,7 @@ import java.util.TimerTask;
 import java.util.concurrent.atomic.AtomicReference;
 
 import javax.jcr.RepositoryException;
+import javax.jcr.UnsupportedRepositoryOperationException;
 import javax.jcr.observation.Event;
 import javax.jcr.observation.EventJournal;
 import javax.jcr.observation.EventListener;
@@ -73,6 +74,8 @@ public class ObservationManagerImpl impl
             ChangeFilter filter = new ChangeFilter(eventTypes, absPath, isDeep, uuid, nodeTypeName,
noLocal);
             processor.setFilter(filter);
         }
+
+        throw new UnsupportedRepositoryOperationException();
     }
 
     @Override
@@ -90,18 +93,18 @@ public class ObservationManagerImpl impl
 
     @Override
     public void setUserData(String userData) throws RepositoryException {
-        // todo implement setUserData
+        throw new UnsupportedRepositoryOperationException();
     }
 
     @Override
     public EventJournal getEventJournal() throws RepositoryException {
-        return null; // todo implement getEventJournal
+        throw new UnsupportedRepositoryOperationException();
     }
 
     @Override
     public EventJournal getEventJournal(int eventTypes, String absPath, boolean isDeep, String[]
uuid, String[]
             nodeTypeName) throws RepositoryException {
-        return null; // todo implement getEventJournal
+        throw new UnsupportedRepositoryOperationException();
     }
 
     //------------------------------------------------------------< private >---



Mime
View raw message