public class UserRestResourcesV1 extends Object implements UserRestResources
| Modifier and Type | Class and Description |
|---|---|
static class |
UserRestResourcesV1.ACTIVITY_STREAM_TYPE |
| Constructor and Description |
|---|
UserRestResourcesV1(org.exoplatform.portal.config.UserACL userACL,
org.exoplatform.social.core.manager.IdentityManager identityManager) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addActivityByUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
ActivityEntity model) |
javax.ws.rs.core.Response |
addUser(javax.ws.rs.core.UriInfo uriInfo,
String expand,
UserEntity model)
Creates an user
|
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) |
javax.ws.rs.core.Response |
getUserAvatarById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id,
String defaultAvatar) |
javax.ws.rs.core.Response |
getUserBannerById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id,
String defaultBanner) |
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)
Get all users, filter by name if exists.
|
javax.ws.rs.core.Response |
updateUserById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
UserEntity model) |
public UserRestResourcesV1(org.exoplatform.portal.config.UserACL userACL,
org.exoplatform.social.core.manager.IdentityManager identityManager)
@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
UserRestResourcesgetUsers in interface UserRestResourcesq - value that an user's name matchException@RolesAllowed(value="users") public javax.ws.rs.core.Response addUser(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, UserEntity model) throws Exception
UserRestResourcesaddUser in interface 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 UserRestResourcesExceptionpublic javax.ws.rs.core.Response getUserAvatarById(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.Request request,
String id,
String defaultAvatar)
throws IOException
uriInfo - id - IOExceptionpublic javax.ws.rs.core.Response getUserBannerById(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.Request request,
String id,
String defaultBanner)
throws IOException
uriInfo - id - IOException@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 UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response updateUserById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, UserEntity model) throws Exception
updateUserById in interface 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 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 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 UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response addActivityByUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, ActivityEntity model) throws Exception
addActivityByUser in interface UserRestResourcesExceptionpublic static org.exoplatform.services.organization.User getUserByEmail(String email)
email - Input email to check.Copyright © 2003–2018 eXo Platform SAS. All rights reserved.