public class UserRestResourcesV1 extends Object implements UserRestResources, org.picocontainer.Startable
| Modifier and Type | Class and Description |
|---|---|
static class |
UserRestResourcesV1.ACTIVITY_STREAM_TYPE |
| Modifier and Type | Field and Description |
|---|---|
static org.exoplatform.portal.rest.UserFieldValidator |
EMAIL_VALIDATOR |
static org.exoplatform.portal.rest.UserFieldValidator |
FIRSTNAME_VALIDATOR |
static org.exoplatform.portal.rest.UserFieldValidator |
LASTNAME_VALIDATOR |
static org.exoplatform.portal.rest.UserFieldValidator |
PASSWORD_VALIDATOR |
static String |
PROFILE_DEFAULT_AVATAR_URL |
static String |
PROFILE_DEFAULT_BANNER_URL |
static List<org.exoplatform.portal.rest.UserFieldValidator> |
USER_FIELD_VALIDATORS |
static org.exoplatform.portal.rest.UserFieldValidator |
USERNAME_VALIDATOR |
| Constructor and Description |
|---|
UserRestResourcesV1(org.exoplatform.portal.config.UserACL userACL,
org.exoplatform.services.organization.OrganizationService organizationService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.manager.RelationshipManager relationshipManager,
org.exoplatform.services.user.UserStateService userStateService,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.upload.UploadService uploadService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addActivityByUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
ActivityRestIn 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 |
getConnectionsOfUser(javax.ws.rs.core.UriInfo uriInfo,
String id,
String q,
boolean returnSize,
String expand) |
javax.ws.rs.core.Response |
getInvitationsOfUser(javax.ws.rs.core.UriInfo uriInfo,
boolean returnSize,
String expand) |
javax.ws.rs.core.Response |
getPendingOfUser(javax.ws.rs.core.UriInfo uriInfo,
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 lastModified,
String defaultAvatar) |
javax.ws.rs.core.Response |
getUserBannerById(javax.ws.rs.core.UriInfo uriInfo,
javax.ws.rs.core.Request request,
String id,
String lastModified,
String defaultBanner) |
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,
String status,
String spaceId,
int offset,
int limit,
boolean returnSize,
String expand)
Get all users, filter by name if exists.
|
javax.ws.rs.core.Response |
importUsers(javax.servlet.http.HttpServletRequest request,
String uploadId,
boolean progress,
boolean clean,
boolean sync) |
void |
start() |
void |
stop() |
javax.ws.rs.core.Response |
updateUserById(javax.ws.rs.core.UriInfo uriInfo,
String id,
String expand,
UserEntity model) |
javax.ws.rs.core.Response |
updateUserProfileAttribute(String username,
String name,
String value) |
javax.ws.rs.core.Response |
updateUserProfileAttributes(javax.servlet.http.HttpServletRequest request,
String username,
ProfileEntity profileEntity) |
public static final String PROFILE_DEFAULT_BANNER_URL
public static final String PROFILE_DEFAULT_AVATAR_URL
public static final org.exoplatform.portal.rest.UserFieldValidator USERNAME_VALIDATOR
public static final org.exoplatform.portal.rest.UserFieldValidator EMAIL_VALIDATOR
public static final org.exoplatform.portal.rest.UserFieldValidator LASTNAME_VALIDATOR
public static final org.exoplatform.portal.rest.UserFieldValidator FIRSTNAME_VALIDATOR
public static final org.exoplatform.portal.rest.UserFieldValidator PASSWORD_VALIDATOR
public static final List<org.exoplatform.portal.rest.UserFieldValidator> USER_FIELD_VALIDATORS
public UserRestResourcesV1(org.exoplatform.portal.config.UserACL userACL,
org.exoplatform.services.organization.OrganizationService organizationService,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.manager.RelationshipManager relationshipManager,
org.exoplatform.services.user.UserStateService userStateService,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.upload.UploadService uploadService)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable@RolesAllowed(value="users") public javax.ws.rs.core.Response getUsers(@Context javax.ws.rs.core.UriInfo uriInfo, String q, String status, String spaceId, int offset, int limit, boolean returnSize, String expand) throws Exception
UserRestResourcesgetUsers in interface UserRestResourcesq - value that an user's name matchstatus - filter only online usersspaceId - filter only space membersException@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 lastModified,
String defaultAvatar)
throws IOException
IOExceptionpublic javax.ws.rs.core.Response getUserBannerById(@Context
javax.ws.rs.core.UriInfo uriInfo,
@Context
javax.ws.rs.core.Request request,
String id,
String lastModified,
String defaultBanner)
throws IOException
IOExceptionpublic javax.ws.rs.core.Response updateUserProfileAttribute(String username, String name, String value) throws IOException
IOExceptionpublic javax.ws.rs.core.Response updateUserProfileAttributes(@Context
javax.servlet.http.HttpServletRequest request,
String username,
ProfileEntity profileEntity)
throws Exception
Exception@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 getConnectionsOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String q, boolean returnSize, String expand) throws Exception
getConnectionsOfUser in interface UserRestResourcesException@RolesAllowed(value="users") public javax.ws.rs.core.Response getInvitationsOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, boolean returnSize, String expand) throws Exception
getInvitationsOfUser in interface UserRestResourcesExceptionpublic javax.ws.rs.core.Response getPendingOfUser(@Context
javax.ws.rs.core.UriInfo uriInfo,
boolean returnSize,
String expand)
throws Exception
getPendingOfUser 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, ActivityRestIn model) throws Exception
addActivityByUser in interface UserRestResourcesException@RolesAllowed(value="administrators") public javax.ws.rs.core.Response importUsers(@Context javax.servlet.http.HttpServletRequest request, String uploadId, boolean progress, boolean clean, boolean sync)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.