public class UserRestResourcesV1 extends Object implements org.exoplatform.social.rest.api.UserRestResources
| Modifier and Type | Class and Description |
|---|---|
static class |
UserRestResourcesV1.ACTIVITY_STREAM_TYPE |
| Constructor and Description |
|---|
UserRestResourcesV1() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addActivityByUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
org.exoplatform.social.rest.entity.ActivityEntity model) |
javax.ws.rs.core.Response |
addUser(javax.ws.rs.core.UriInfo uriInfo,
String expand,
org.exoplatform.social.rest.entity.UserEntity model) |
javax.ws.rs.core.Response |
deleteUserById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand) |
javax.ws.rs.core.Response |
getActivitiesOfUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
String type,
int offset,
int limit,
String before,
String after,
boolean returnSize,
String expand) |
javax.ws.rs.core.Response |
getConnectionOfUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
boolean returnSize,
String expand) |
javax.ws.rs.core.Response |
getSpacesOfUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
int offset,
int limit,
boolean returnSize,
String expand) |
static org.exoplatform.services.organization.User |
getUserByEmail(String email)
Checks if input email is existing already or not.
|
javax.ws.rs.core.Response |
getUserById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand) |
javax.ws.rs.core.Response |
getUsers(javax.ws.rs.core.UriInfo uriInfo,
String q,
int offset,
int limit,
boolean returnSize,
String expand) |
javax.ws.rs.core.Response |
updateUserById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
org.exoplatform.social.rest.entity.UserEntity model) |
@RolesAllowed(value="users") public javax.ws.rs.core.Response getUsers(@Context javax.ws.rs.core.UriInfo uriInfo, String q, int offset, int limit, boolean returnSize, String expand) throws Exception
getUsers in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response addUser(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, org.exoplatform.social.rest.entity.UserEntity model) throws Exception
addUser in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getUserById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
getUserById in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response deleteUserById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception
deleteUserById in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response updateUserById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, org.exoplatform.social.rest.entity.UserEntity model) throws Exception
updateUserById in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getConnectionOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, boolean returnSize, String expand) throws Exception
getConnectionOfUser in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getSpacesOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, boolean returnSize, String expand) throws Exception
getSpacesOfUser in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getActivitiesOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String type, int offset, int limit, String before, String after, boolean returnSize, String expand) throws Exception
getActivitiesOfUser in interface org.exoplatform.social.rest.api.UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response addActivityByUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, org.exoplatform.social.rest.entity.ActivityEntity model) throws Exception
addActivityByUser in interface org.exoplatform.social.rest.api.UserRestResourcesExceptionpublic static org.exoplatform.services.organization.User getUserByEmail(String email)
email - Input email to check.Copyright © 2003–2016 eXo Platform SAS. All rights reserved.