Package com.peterphi.usermanager.ui.api
Interface UserUIService
- All Known Implementing Classes:
UserUIServiceImpl
@Path("/")
public interface UserUIService
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponsechangePassword(int userId, String token, String newPassword, String newPasswordConfirm) javax.ws.rs.core.ResponsedeleteUser(int userId, String token) javax.ws.rs.core.ResponseeditUserProfile(int userId, String token, String dateFormat, String timeZone, String name, String email, List<String> roles) getIndex()javax.ws.rs.core.ResponsegetUserEdit(int userId) getUsers(javax.ws.rs.core.UriInfo query) getWarnAndRedirect(String url) javax.ws.rs.core.Responseimpersonate(int userId, String token) javax.ws.rs.core.ResponserotateAccessKey(int userId, String token)
-
Method Details
-
getIndex
-
getWarnAndRedirect
-
getUsers
@GET @Path("/users") @Produces("text/html") String getUsers(@Context javax.ws.rs.core.UriInfo query) -
getLocalUserEdit
@GET @Path("/user") @Produces("text/html") javax.ws.rs.core.Response getLocalUserEdit() -
getUserEdit
@GET @Path("/user/{user_id}") @Produces("text/html") String getUserEdit(@PathParam("user_id") int userId) -
editUserProfile
@POST @Path("/user/{user_id}") @Produces("text/html") javax.ws.rs.core.Response editUserProfile(@PathParam("user_id") int userId, @FormParam("token") String token, @FormParam("dateFormat") String dateFormat, @FormParam("timeZone") String timeZone, @FormParam("name") String name, @FormParam("email") String email, @FormParam("roles") List<String> roles) -
rotateAccessKey
@POST @Path("/user/{user_id}/rotate-access-key") @Produces("text/html") javax.ws.rs.core.Response rotateAccessKey(@PathParam("user_id") int userId, @FormParam("token") String token) -
deleteUser
@POST @Path("/user/{user_id}/delete") @Produces("text/html") javax.ws.rs.core.Response deleteUser(@PathParam("user_id") int userId, @FormParam("token") String token) -
changePassword
-
impersonate
@POST @Path("/user/{user_id}/impersonate") @Produces("text/html") javax.ws.rs.core.Response impersonate(@PathParam("user_id") int userId, @FormParam("token") String token)
-