Author: lindner
Date: Sat May 24 07:53:43 2008
New Revision: 659830

URL: http://svn.apache.org/viewvc?rev=659830&view=rev
Log:
Implement SHINDIG-306 - topFriends filter

Modified:
    incubator/shindig/trunk/features/opensocial-reference/datarequest.js
    
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/PeopleService.java
    incubator/shindig/trunk/php/src/socialdata/opensocial/PeopleService.php

Modified: incubator/shindig/trunk/features/opensocial-reference/datarequest.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-reference/datarequest.js?rev=659830&r1=659829&r2=659830&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-reference/datarequest.js 
(original)
+++ incubator/shindig/trunk/features/opensocial-reference/datarequest.js Sat 
May 24 07:53:43 2008
@@ -211,7 +211,13 @@
    *
    * @member opensocial.DataRequest.FilterType
    */
-  HAS_APP : 'hasApp'
+  HAS_APP : 'hasApp',
+  /**
+   * Retrieves only the user's top friends.
+   *
+   * @member opensocial.DataRequest.FilterType
+   */
+  TOP_FRIENDS : 'topFriends'
 };
 
 

Modified: 
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/PeopleService.java
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/PeopleService.java?rev=659830&r1=659829&r2=659830&view=diff
==============================================================================
--- 
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/PeopleService.java
 (original)
+++ 
incubator/shindig/trunk/java/social-api/src/main/java/org/apache/shindig/social/opensocial/PeopleService.java
 Sat May 24 07:53:43 2008
@@ -46,7 +46,7 @@
   }
 
   public enum FilterType {
-    all, hasApp
+    all, hasApp, topFriends
   }
 
   /**

Modified: 
incubator/shindig/trunk/php/src/socialdata/opensocial/PeopleService.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialdata/opensocial/PeopleService.php?rev=659830&r1=659829&r2=659830&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialdata/opensocial/PeopleService.php 
(original)
+++ incubator/shindig/trunk/php/src/socialdata/opensocial/PeopleService.php Sat 
May 24 07:53:43 2008
@@ -19,7 +19,7 @@
 
 abstract class PeopleService {
        public $sortOrder = array('topFriends', 'name');
-       public $filterType = array('all', 'hasApp');
+       public $filterType = array('all', 'hasApp', 'topFriends');
 
        /**
         * Returns a list of people ids that the other handlers (currently data


Reply via email to