jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r769811 - in /jackrabbit/trunk: jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/
Date Wed, 29 Apr 2009 16:13:34 GMT
Author: reschke
Date: Wed Apr 29 16:13:33 2009
New Revision: 769811

URL: http://svn.apache.org/viewvc?rev=769811&view=rev
Log:
JCR-2086: add o.a.j.api.jsr283.observation.EventIterator, use it in EventJournal, add method
stub in -core.


Added:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java
  (with props)
Modified:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventJournal.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java

Added: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java?rev=769811&view=auto
==============================================================================
--- jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java
(added)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java
Wed Apr 29 16:13:33 2009
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jackrabbit.api.jsr283.observation;
+
+import java.util.Calendar;
+
+/**
+ * @since JCR 2.0
+ */
+public interface EventIterator extends javax.jcr.observation.EventIterator {
+
+    /**
+     * Returns the date associated with this event iterator, or
+     * <code>null</code>.
+     * <p/>
+     * The date is required to be non-null for event iterators obtained through
+     * an {@link EventJournal}.
+     *
+     * @return the date associated with this event iterator, or
+     *         <code>null</code>.
+     *
+     * @since JCR 2.0
+     */
+    public Calendar getDate();
+}

Propchange: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventIterator.java
------------------------------------------------------------------------------
    svn:keywords = author date id revision url

Modified: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventJournal.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventJournal.java?rev=769811&r1=769810&r2=769811&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventJournal.java
(original)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/observation/EventJournal.java
Wed Apr 29 16:13:33 2009
@@ -16,8 +16,6 @@
  */
 package org.apache.jackrabbit.api.jsr283.observation;
 
-import javax.jcr.observation.EventIterator;
-
 /**
  * An <code>EventJournal</code> is an extension of <code>EventIterator</code>
  * that provides the additional method {@link #skipTo(long)}:

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java?rev=769811&r1=769810&r2=769811&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/observation/EventJournalImpl.java
Wed Apr 29 16:13:33 2009
@@ -16,6 +16,7 @@
  */
 package org.apache.jackrabbit.core.observation;
 
+import java.util.Calendar;
 import java.util.List;
 import java.util.LinkedList;
 import java.util.NoSuchElementException;
@@ -176,6 +177,10 @@
         return next;
     }
 
+    public Calendar getDate() {
+        throw new RuntimeException("Not implemented yet, see JCR-2086");
+    }
+
     //------------------------< RangeIterator >---------------------------------
 
     /**



Mime
View raw message