org.exoplatform.social.service.rest
Class PeopleRestService

java.lang.Object
  extended by org.exoplatform.social.service.rest.PeopleRestService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class PeopleRestService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer

PeopleRestService.java < /br> Provides REST Services for manipulating jobs realtes to people.

Since:
Nov 22, 2010
Author:
hanhvq@gmail.com

Nested Class Summary
static class PeopleRestService.ConnectionInfoRestOut
           
static class PeopleRestService.PeopleInfo
          PeopleInfo class.
static class PeopleRestService.UserInfo
           
static class PeopleRestService.UserNameList
          UserNameList class.
 
Constructor Summary
PeopleRestService()
           
 
Method Summary
 javax.ws.rs.core.Response getPeopleInfo(javax.ws.rs.core.UriInfo uriInfo, String portalName, String currentUserName, String userId, String format, String updatedType)
          Gets and returns information of people that are displayed as detail user's information on popup.
 org.exoplatform.social.core.space.spi.SpaceService getSpaceService()
           
 javax.ws.rs.core.Response searchConnection(javax.ws.rs.core.UriInfo uriInfo, String portalName, String nameToSearch, int offset, int limit, String lang, String format)
          Gets and returns list people's information that have had connection with current viewer.
 javax.ws.rs.core.Response suggestUsernames(javax.ws.rs.core.UriInfo uriInfo, String query)
          Gets and returns list of user's name that match the input string for suggesting.
 javax.ws.rs.core.Response suggestUsernames(javax.ws.rs.core.UriInfo uriInfo, String name, String currentUser, String typeOfRelation, String spaceURL, String format)
          Gets and returns list of user's name that match the input string for suggesting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeopleRestService

public PeopleRestService()
Method Detail

suggestUsernames

public javax.ws.rs.core.Response suggestUsernames(@Context
                                                  javax.ws.rs.core.UriInfo uriInfo,
                                                  String name,
                                                  String currentUser,
                                                  String typeOfRelation,
                                                  String spaceURL,
                                                  String format)
                                           throws Exception
Gets and returns list of user's name that match the input string for suggesting.

Parameters:
uriInfo -
name -
format -
Returns:
list of user's name match the input string.
Throws:
Exception

suggestUsernames

public javax.ws.rs.core.Response suggestUsernames(@Context
                                                  javax.ws.rs.core.UriInfo uriInfo,
                                                  String query)
                                           throws Exception
Gets and returns list of user's name that match the input string for suggesting.

Parameters:
uriInfo -
name -
format -
Returns:
list of user's name match the input string.
Throws:
Exception

searchConnection

public javax.ws.rs.core.Response searchConnection(@Context
                                                  javax.ws.rs.core.UriInfo uriInfo,
                                                  String portalName,
                                                  String nameToSearch,
                                                  int offset,
                                                  int limit,
                                                  String lang,
                                                  String format)
                                           throws Exception
Gets and returns list people's information that have had connection with current viewer.

Parameters:
uriInfo -
portalName -
nameToSearch -
offset -
limit -
lang -
format -
Returns:
list people's information.
Throws:
Exception

getPeopleInfo

public javax.ws.rs.core.Response getPeopleInfo(@Context
                                               javax.ws.rs.core.UriInfo uriInfo,
                                               String portalName,
                                               String currentUserName,
                                               String userId,
                                               String format,
                                               String updatedType)
                                        throws Exception
Gets and returns information of people that are displayed as detail user's information on popup.

Parameters:
uriInfo -
portalName - name of current portal container.
currentUserName - Name of current user.
userId - Id of user is specified.
format -
update -
Returns:
Information of people appropriate focus user.
Throws:
Exception

getSpaceService

public org.exoplatform.social.core.space.spi.SpaceService getSpaceService()


Copyright © 2013 eXo Platform SAS. All Rights Reserved.