jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r773852 - in /jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation: EventImpl.java FilteredEventIterator.java ObservationManagerImpl.java
Date Tue, 12 May 2009 11:07:01 GMT
Author: angela
Date: Tue May 12 11:07:00 2009
New Revision: 773852

URL: http://svn.apache.org/viewvc?rev=773852&view=rev
Log:
JCR-2108: JSR 283 Observation

- reorder methods
- add todo
- add javadoc

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/EventImpl.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/EventImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/EventImpl.java?rev=773852&r1=773851&r2=773852&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/EventImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/EventImpl.java
Tue May 12 11:07:00 2009
@@ -64,6 +64,7 @@
         this.event = event;
     }
 
+    //--------------------------------------------------------------< Event >---
     /**
      * {@inheritDoc}
      */
@@ -86,6 +87,39 @@
     }
 
     /**
+     * @see javax.jcr.observation.Event#getIdentifier()
+     */
+    public String getIdentifier() throws RepositoryException {
+        // TODO
+        throw new UnsupportedRepositoryOperationException("JCR-2108");
+    }
+
+    /**
+     * @see javax.jcr.observation.Event#getInfo()
+     */
+    public Map getInfo() throws RepositoryException {
+        // TODO
+        throw new UnsupportedRepositoryOperationException("JCR-2108");
+    }
+
+    /**
+     * @see javax.jcr.observation.Event#getUserData()
+     */
+    public String getUserData() throws RepositoryException {
+        // TODO
+        throw new UnsupportedRepositoryOperationException("JCR-2108");
+    }
+
+    /**
+     * @see javax.jcr.observation.Event#getDate()
+     */
+    public long getDate() throws RepositoryException {
+        // TODO
+        throw new UnsupportedRepositoryOperationException("JCR-2108");
+    }
+
+    //-------------------------------------------------------------< Object >---
+    /**
      * Returns a String representation of this <code>Event</code>.
      *
      * @return a String representation of this <code>Event</code>.
@@ -130,21 +164,4 @@
             return "UnknownEventType";
         }
     }
-
-    public long getDate() throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1839");
-    }
-
-    public String getIdentifier() throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-2075");
-    }
-
-    public Map getInfo() throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1904");
-    }
-
-    public String getUserData() throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1904");
-    }
-
 }

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java?rev=773852&r1=773851&r2=773852&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/FilteredEventIterator.java
Tue May 12 11:07:00 2009
@@ -109,6 +109,14 @@
     }
 
     /**
+     * @see javax.jcr.observation.EventIterator#getDate()
+     */
+    public Calendar getDate() {
+        // TODO
+        throw new UnsupportedOperationException("JCR-2108. Implementation Missing");
+    }
+
+    /**
      * {@inheritDoc}
      */
     public void skip(long skipNum) {
@@ -165,10 +173,4 @@
             next = filter.accept(event, isLocal) ? new EventImpl(resolver, event) : null;
         }
     }
-
-    public Calendar getDate() {
-        // TODO JCR-1839
-        return null;
-    }
-
 }

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java?rev=773852&r1=773851&r2=773852&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/observation/ObservationManagerImpl.java
Tue May 12 11:07:00 2009
@@ -167,12 +167,20 @@
         return new EventListenerIteratorAdapter(activeListeners.keySet());
     }
 
+    /**
+     * @see javax.jcr.observation.ObservationManager#getEventJournal()
+     */
     public EventJournal getEventJournal() throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1849");
+        // TODO
+        throw new UnsupportedRepositoryOperationException("JCR-2108");
     }
 
+    /**
+     * @see javax.jcr.observation.ObservationManager#setUserData(String) 
+     */
     public void setUserData(String userData) throws RepositoryException {
-        throw new UnsupportedRepositoryOperationException("JCR-1904");
+        // TODO
+        throw new UnsupportedRepositoryOperationException("JCR-2108");
     }
 
     //-----------------------< InternalEventListener >--------------------------



Mime
View raw message