You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2013/09/18 17:28:15 UTC

svn commit: r1524456 - in /chemistry/opencmis/trunk/chemistry-opencmis-client: chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/ chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/

Author: fmui
Date: Wed Sep 18 15:28:15 2013
New Revision: 1524456

URL: http://svn.apache.org/r1524456
Log:
disabled change log paging and skipping - it wouldn't work

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java?rev=1524456&r1=1524455&r2=1524456&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-api/src/main/java/org/apache/chemistry/opencmis/client/api/Session.java Wed Sep 18 15:28:15 2013
@@ -419,6 +419,8 @@ public interface Session extends Seriali
     /**
      * Returns an iterator of content changes, starting from the given change
      * log token to the latest entry in the change log.
+     * <p>
+     * Note: Paging and skiping are not supported.
      * 
      * @param changeLogToken
      *            the change log token to start from or {@code null}
@@ -433,6 +435,8 @@ public interface Session extends Seriali
     /**
      * Returns an iterator of content changes, starting from the given change
      * log token to the latest entry in the change log.
+     * <p>
+     * Note: Paging and skiping are not supported.
      * 
      * @param changeLogToken
      *            the change log token to start from or {@code null}

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java?rev=1524456&r1=1524455&r2=1524456&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-impl/src/main/java/org/apache/chemistry/opencmis/client/runtime/SessionImpl.java Wed Sep 18 15:28:15 2013
@@ -401,7 +401,22 @@ public class SessionImpl implements Sess
                         objectList.hasMoreItems()) {
                 };
             }
-        });
+        }) {
+            @Override
+            public ItemIterable<ChangeEvent> skipTo(long position) {
+                throw new CmisNotSupportedException("Skipping not supported!");
+            }
+
+            @Override
+            public ItemIterable<ChangeEvent> getPage() {
+                throw new CmisNotSupportedException("Paging not supported!");
+            }
+
+            @Override
+            public ItemIterable<ChangeEvent> getPage(int maxNumItems) {
+                throw new CmisNotSupportedException("Paging not supported!");
+            }
+        };
     }
 
     public OperationContext getDefaultContext() {