@Component @RestController @RequestMapping(value="/gateway") public class UserRest extends Object
| Modifier and Type | Field and Description |
|---|---|
IAuthorityRepository |
authorityRepository |
String |
contextPath |
EmailSender |
emailSender |
org.thymeleaf.templateresolver.ClassLoaderTemplateResolver |
emailTemplateResolver |
String |
gatewayHost |
String |
gatewayPort |
org.springframework.mail.javamail.JavaMailSender |
mailSender |
String |
mailSendFrom |
org.thymeleaf.spring3.SpringTemplateEngine |
thymeleaf |
IUserRepository |
userRepository |
javax.validation.Validator |
validator |
| Constructor and Description |
|---|
UserRest() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
activateUser(String emailVerificationToken) |
org.springframework.http.ResponseEntity |
changePassword(UserPasswordRequestDto userPasswordRequestDto,
Principal user) |
org.springframework.http.ResponseEntity |
createUser(UserRequestDto userRequestDto) |
org.springframework.http.ResponseEntity |
initiateResetPassword(InitiateResetPasswordRequestDto initiateResetPasswordRequestDto) |
org.springframework.http.ResponseEntity |
resetPassword(ResetPasswordRequestDto resetPasswordDto,
String resetPasswordToken) |
@Autowired public IUserRepository userRepository
@Autowired public IAuthorityRepository authorityRepository
@Autowired public javax.validation.Validator validator
@Autowired public org.springframework.mail.javamail.JavaMailSender mailSender
@Autowired public org.thymeleaf.templateresolver.ClassLoaderTemplateResolver emailTemplateResolver
@Autowired public org.thymeleaf.spring3.SpringTemplateEngine thymeleaf
@Value(value="${mailserver.sendFrom}")
public String mailSendFrom
@Value(value="${gatewayHost}")
public String gatewayHost
@Value(value="${gatewayPort}")
public String gatewayPort
@Value(value="${server.contextPath}")
public String contextPath
public EmailSender emailSender
@RequestMapping(value="/createUser",
method=POST)
@Transactional
public org.springframework.http.ResponseEntity createUser(@RequestBody
UserRequestDto userRequestDto)
@RequestMapping(value="/activateUser",
method=PUT)
@Transactional
public org.springframework.http.ResponseEntity activateUser(@RequestParam
String emailVerificationToken)
@RequestMapping(value="/changePassword",
method=PUT)
@Transactional
public org.springframework.http.ResponseEntity changePassword(@RequestBody
UserPasswordRequestDto userPasswordRequestDto,
Principal user)
@RequestMapping(value="/initiateResetPassword",
method=PUT)
@Transactional
public org.springframework.http.ResponseEntity initiateResetPassword(@RequestBody
InitiateResetPasswordRequestDto initiateResetPasswordRequestDto)
@RequestMapping(value="/resetPassword",
method=PUT)
@Transactional
public org.springframework.http.ResponseEntity resetPassword(@RequestBody
ResetPasswordRequestDto resetPasswordDto,
@RequestParam
String resetPasswordToken)
Copyright © 2015 Powered by Sergey. All rights reserved.