Package org.exoplatform.social.rest.api
Interface UserRestResources
- All Superinterfaces:
org.exoplatform.services.rest.resource.ResourceContainer,SocialRest
- All Known Implementing Classes:
UserRestResourcesV1
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseaddUser(javax.ws.rs.core.UriInfo uriInfo, String expand, UserEntity model) Creates an userjavax.ws.rs.core.ResponsedeleteUserById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand) javax.ws.rs.core.ResponsegetConnectionsOfUser(javax.ws.rs.core.UriInfo uriInfo, String id, String q, boolean returnSize, String expand) javax.ws.rs.core.ResponsegetInvitationsOfUser(javax.ws.rs.core.UriInfo uriInfo, boolean returnSize, String expand) javax.ws.rs.core.ResponsegetPendingOfUser(javax.ws.rs.core.UriInfo uriInfo, boolean returnSize, String expand) javax.ws.rs.core.ResponsegetSpacesOfUser(javax.ws.rs.core.UriInfo uriInfo, String id, int offset, int limit, boolean returnSize, String expand) javax.ws.rs.core.ResponsegetUserById(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.Request request, String id, String expand) javax.ws.rs.core.ResponsegetUsers(javax.ws.rs.core.UriInfo uriInfo, String q, boolean searchEmail, boolean searchUserName, String status, String userType, String isConnected, String spaceId, boolean isDisabled, String enrollmentStatus, int offset, int limit, boolean returnSize, String expand, boolean excludeCurrentUser) Get all users, filter by name if exists.javax.ws.rs.core.ResponseupdateUserById(javax.ws.rs.core.UriInfo uriInfo, String id, String expand, UserEntity model)
-
Method Details
-
getUsers
javax.ws.rs.core.Response getUsers(@Context javax.ws.rs.core.UriInfo uriInfo, String q, boolean searchEmail, boolean searchUserName, String status, String userType, String isConnected, String spaceId, boolean isDisabled, String enrollmentStatus, int offset, int limit, boolean returnSize, String expand, boolean excludeCurrentUser) throws Exception Get all users, filter by name if exists.- Parameters:
q- value that an user's name matchstatus- filter only online usersuserType- filter by user typeisConnected- filter by connected usersspaceId- filter only space membersisDisabled- only disabled usersenrollmentStatus- filter by enrollment status- Returns:
- List of users in json format.
- Throws:
Exception
-
addUser
javax.ws.rs.core.Response addUser(@Context javax.ws.rs.core.UriInfo uriInfo, String expand, UserEntity model) throws Exception Creates an user- Parameters:
uriInfo-- Returns:
- user created in json format
- Throws:
Exception
-
getUserById
javax.ws.rs.core.Response getUserById(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.ws.rs.core.Request request, String id, String expand) throws Exception - Throws:
Exception
-
deleteUserById
javax.ws.rs.core.Response deleteUserById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand) throws Exception - Throws:
Exception
-
updateUserById
javax.ws.rs.core.Response updateUserById(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String expand, UserEntity model) throws Exception - Throws:
Exception
-
getConnectionsOfUser
javax.ws.rs.core.Response getConnectionsOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, String id, String q, boolean returnSize, String expand) throws Exception - Throws:
Exception
-
getInvitationsOfUser
javax.ws.rs.core.Response getInvitationsOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, boolean returnSize, String expand) throws Exception - Throws:
Exception
-
getPendingOfUser
javax.ws.rs.core.Response getPendingOfUser(@Context javax.ws.rs.core.UriInfo uriInfo, boolean returnSize, String expand) throws Exception - Throws:
Exception
-
getSpacesOfUser
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 - Throws:
Exception
-