You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by do...@apache.org on 2008/08/25 17:29:48 UTC

svn commit: r688757 - /incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/RestfulCollection.java

Author: doll
Date: Mon Aug 25 08:29:48 2008
New Revision: 688757

URL: http://svn.apache.org/viewvc?rev=688757&view=rev
Log:
0.8.1 change
Added filtered, sorted and updatedSince booleans to the RestFulCollection which should be filled out by containers. They are not used by the json db container yet.


Modified:
    incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/RestfulCollection.java

Modified: incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/RestfulCollection.java
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/RestfulCollection.java?rev=688757&r1=688756&r2=688757&view=diff
==============================================================================
--- incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/RestfulCollection.java (original)
+++ incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/spi/RestfulCollection.java Mon Aug 25 08:29:48 2008
@@ -24,6 +24,11 @@
   private int startIndex;
   private int totalResults;
 
+  private boolean filtered = true;
+  private boolean sorted = true;
+  private boolean updatedSince = true;
+
+
   public RestfulCollection(List<T> entry) {
     this(entry, 0, entry.size());
   }
@@ -57,4 +62,28 @@
   public void setTotalResults(int totalResults) {
     this.totalResults = totalResults;
   }
+
+  public boolean isFiltered() {
+    return filtered;
+  }
+
+  public void setFiltered(boolean filtered) {
+    this.filtered = filtered;
+  }
+
+  public boolean isSorted() {
+    return sorted;
+  }
+
+  public void setSorted(boolean sorted) {
+    this.sorted = sorted;
+  }
+
+  public boolean isUpdatedSince() {
+    return updatedSince;
+  }
+
+  public void setUpdatedSince(boolean updatedSince) {
+    this.updatedSince = updatedSince;
+  }
 }