Package org.exoplatform.social.rest.api
Interface UserRestResources
-
- All Superinterfaces:
org.exoplatform.services.rest.resource.ResourceContainer,SocialRest
- All Known Implementing Classes:
UserRestResourcesV1
public interface UserRestResources extends SocialRest
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.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, String id, String expand)javax.ws.rs.core.ResponsegetUsers(javax.ws.rs.core.UriInfo uriInfo, String q, String status, String userType, String isConnected, String spaceId, boolean isDisabled, String enrollmentStatus, int offset, int limit, boolean returnSize, String expand)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 Detail
-
getUsers
javax.ws.rs.core.Response getUsers(@Context javax.ws.rs.core.UriInfo uriInfo, String q, String status, String userType, String isConnected, String spaceId, boolean isDisabled, String enrollmentStatus, int offset, int limit, boolean returnSize, String expand) throws ExceptionGet 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 ExceptionCreates 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, 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
-
-