public class PeopleRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
PeopleRestService.ConnectionInfoRestOut |
static class |
PeopleRestService.UserInfo |
| Constructor and Description |
|---|
PeopleRestService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getPeopleInfo(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.SecurityContext securityContext,
String userId,
String format,
String currentUserName,
String updatedType)
Gets a set of information of the target user.
|
org.exoplatform.social.core.space.spi.SpaceService |
getSpaceService() |
javax.ws.rs.core.Response |
searchConnection(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.SecurityContext securityContext,
String portalName,
String nameToSearch,
int offset,
int limit,
String lang,
String format)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
UserRestResourcesV1.getConnectionOfUser(UriInfo, String, boolean, String) |
javax.ws.rs.core.Response |
suggestUsernames(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.SecurityContext securityContext,
String query)
Deprecated.
Deprecated from 4.3.x. Replaced by a new API
UserRestResourcesV1.getUsers(UriInfo, String, String, String, int, int, boolean, String) |
javax.ws.rs.core.Response |
suggestUsernames(javax.ws.rs.core.UriInfo uriInfo,
String name,
String currentUser,
String typeOfRelation,
String activityId,
String spaceURL,
String format)
Gets users' names that match the input string for suggestion.
|
@RolesAllowed(value="users") public javax.ws.rs.core.Response suggestUsernames(@Context javax.ws.rs.core.UriInfo uriInfo, String name, String currentUser, String typeOfRelation, String activityId, String spaceURL, String format) throws Exception
uriInfo - The requested URI information.name - The provided characters to be searched.currentUser - The user who sends request.activityId - the Id of the activity where we want to mention a user in its commenttypeOfRelation - The relationship status such as "confirmed", "pending", "incoming", "member_of_space", "mention_activity_stream", "mention_comment" or "user_to_invite"spaceURL - The URL of the related space.format - The format of the returned result, for example, JSON, or XML.Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response suggestUsernames(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, String query) throws Exception
UserRestResourcesV1.getUsers(UriInfo, String, String, String, int, int, boolean, String)uriInfo - The request URI information.query - The name of the user to filter.Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response searchConnection(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, String portalName, String nameToSearch, int offset, int limit, String lang, String format) throws Exception
UserRestResourcesV1.getConnectionOfUser(UriInfo, String, boolean, String)uriInfo - The requested URI information.format - The format of the returned result, for example, JSON, or XML.portalName - The name of current portal.nameToSearch - The name of user who wants to get.offset - The starting point of the returned result.limit - The ending point of the returned result.lang - The locale type.Exception@RolesAllowed(value="users") public javax.ws.rs.core.Response getPeopleInfo(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.SecurityContext securityContext, String userId, String format, String currentUserName, String updatedType) throws Exception
uriInfo - The requested URI information.securityContext - The security context of the system.userId - The Id of a specific user.format - The format of the returned result, for example, JSON, or XML.currentUserName - The current user name who sends request.updatedType - The type of connection action shown on the pop-up.Exceptionpublic org.exoplatform.social.core.space.spi.SpaceService getSpaceService()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.