@Path(value="/st-users") public class UsersApiResource extends Object implements EndpointResource
Constructor and Description |
---|
UsersApiResource() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postRequest, preRequest
public UsersApiResource()
public static void register()
@GET @Path(value="/login") @Produces(value="text/html") public Object loginScreen(@QueryParam(value="email") String email)
@POST @Path(value="/valet-login") @Produces(value="application/json") public Object valetLogin(Object userKey)
@POST @Produces(value="application/json") @Path(value="/submit-login") public Object login(String username, String password, Boolean rememberMe)
@GET @Produces(value="text/html") @Path(value="/register") public String registerPage()
@POST @Produces(value="application/json") @Path(value="/do-register") public Object doRegister(String displayName, String email, String password, String passwordConfirm, String returnUrl)
@POST @Produces(value="application/json") @Path(value="/admin-create-user") public Object adminCreateUser(User newUser)
@POST @Path(value="/send-verify-email") @Produces(value="text/html") public Object sendVerifyEmail(String email, String returnUrl)
@GET @Path(value="/verify-email") @Produces(value="text/html") public Object verifyEmailAddress(@QueryParam(value="email") String email, @QueryParam(value="returnUrl") String returnUrl, @QueryParam(value="alreadySent") Boolean alreadySent)
@GET @Path(value="/verify-email-address") @Produces(value="text/html") public Object verifyEmailAddress(@QueryParam(value="verifyToken") String verifyToken, @QueryParam(value="email") String email, @QueryParam(value="returnUrl") String returnUrl)
@GET @Path(value="/reset-password") @Produces(value="text/html") public Object resetPassword(@QueryParam(value="resetToken") String resetToken, @QueryParam(value="email") String email, @QueryParam(value="returnUrl") String returnUrl)
@POST @Path(value="/send-reset-email") @Produces(value="application/json") public Object sendResetEmail(String email, String returnUrl)
@POST @Path(value="/do-password-reset") @Produces(value="application/json") public Object doPasswordReset(String resetToken, String email, String password, String passwordConfirm)
@GET @Path(value="/current-user-info") public Object currentUserInfo()
@GET @Path(value="/manage") @Produces(value="text/html") public String manageUsers2()
@GET @Path(value="/users-screen") @Produces(value="application/json") public Map manageUsersScreen()
@GET @Path(value="/users-table") @Produces(value="application/json") public Pager usersTable(@QueryParam(value="page") Integer page, @QueryParam(value="withDeleted") Boolean withDeleted)
@GET @Path(value="/view-user/:userId") @Produces(value="application/json") public IUser viewUser(@PathParam(value="userId") Long userId)
@POST @Path(value="/update-user/:userId") @Produces(value="application/json") public IUser updateUser(@PathParam(value="userId") Long userId, User updatedUser)
@POST @Path(value="/toggle-user-disabled/:userId") @Produces(value="application/json") public Object toggleDisableUser(@PathParam(value="userId") Long userId, boolean disabled)
@POST @Path(value="/toggle-user-approved/:userId") @Produces(value="application/json") public Object toggleUserApproved(@PathParam(value="userId") Long userId, boolean approved)
@POST @Path(value="/toggle-user-deleted/:userId") @Produces(value="application/json") public Object toggleUserDeleted(@PathParam(value="userId") Long userId, boolean deleted)
@POST @Path(value="/force-password-reset/:userId") @Produces(value="application/json") public Object triggerPasswordReset(@PathParam(value="userId") Long userId)
@Path(value="/selenium/get-reset-token") @GET @Produces(value="application/json") public Map getResetToken(@QueryParam(value="email") String email, @QueryParam(value="secret") String secret)
Copyright © 2016. All rights reserved.