You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/07/10 14:07:49 UTC
svn commit: r675537 - in /incubator/shindig/trunk/php/src/socialrest:
UserId.php opensocial/PeopleService.php
samplecontainer/BasicPeopleService.php
Author: chabotc
Date: Thu Jul 10 05:07:49 2008
New Revision: 675537
URL: http://svn.apache.org/viewvc?rev=675537&view=rev
Log:
SHINDIG-439 add SecurityToken hinting to people service interface
Modified:
incubator/shindig/trunk/php/src/socialrest/UserId.php
incubator/shindig/trunk/php/src/socialrest/opensocial/PeopleService.php
incubator/shindig/trunk/php/src/socialrest/samplecontainer/BasicPeopleService.php
Modified: incubator/shindig/trunk/php/src/socialrest/UserId.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/UserId.php?rev=675537&r1=675536&r2=675537&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialrest/UserId.php (original)
+++ incubator/shindig/trunk/php/src/socialrest/UserId.php Thu Jul 10 05:07:49 2008
@@ -36,7 +36,7 @@
return new UserId('userId', $jsonId);
}
- public function getUserId($token)
+ public function getUserId(SecurityToken $token)
{
switch ($this->type) {
case 'viewer':
Modified: incubator/shindig/trunk/php/src/socialrest/opensocial/PeopleService.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/opensocial/PeopleService.php?rev=675537&r1=675536&r2=675537&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialrest/opensocial/PeopleService.php (original)
+++ incubator/shindig/trunk/php/src/socialrest/opensocial/PeopleService.php Thu Jul 10 05:07:49 2008
@@ -28,7 +28,7 @@
* @param profileDetails the details to return
* @param security token $token
*/
- abstract public function getPerson($userId, $groupId, $profileDetails, $token);
+ abstract public function getPerson($userId, $groupId, $profileDetails, SecurityToken $token);
/**
* Returns a list of people that correspond to the passed in person ids.
@@ -40,5 +40,5 @@
* @param max The max number of people to fetch.
* @return a list of people.
*/
- abstract public function getPeople($userId, $groupId, $sortOrder, $filter, $first, $max, $profileDetails, $token);
+ abstract public function getPeople($userId, $groupId, $sortOrder, $filter, $first, $max, $profileDetails, SecurityToken $token);
}
Modified: incubator/shindig/trunk/php/src/socialrest/samplecontainer/BasicPeopleService.php
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/socialrest/samplecontainer/BasicPeopleService.php?rev=675537&r1=675536&r2=675537&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/socialrest/samplecontainer/BasicPeopleService.php (original)
+++ incubator/shindig/trunk/php/src/socialrest/samplecontainer/BasicPeopleService.php Thu Jul 10 05:07:49 2008
@@ -29,7 +29,7 @@
return ($name < $name1) ? - 1 : 1;
}
- public function getPerson($userId, $groupId, $profileDetails, $token)
+ public function getPerson($userId, $groupId, $profileDetails, SecurityToken $token)
{
$person = $this->getPeople($userId, $groupId, null, null, null, null, $profileDetails, $token);
// return of getPeople is a ResponseItem(RestfulCollection(ArrayOfPeople)), disassemble to return just one person
@@ -40,7 +40,7 @@
return new ResponseItem(NOT_FOUND, "Person not found", null);
}
- public function getPeople($userId, $groupId, $sortOrder, $filter, $first, $max, $profileDetails, $token)
+ public function getPeople($userId, $groupId, $sortOrder, $filter, $first, $max, $profileDetails, SecurityToken $token)
{
$ids = array();
switch ($groupId->getType()) {