Class UserServiceImpl
java.lang.Object
org.xbricks.common.generic.services.security.UserServiceImpl
- All Implemented Interfaces:
CRUDService<users>
,UserService
-
Constructor Summary
ConstructorDescriptionUserServiceImpl
(UserRepository userRepository, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, UserToUserCommand userToUserCommand, UserCommandToUser userCommandToUser, UserInfoToUserCommand userInfoToUserCommand, VerificationTokenRepository tokenRepository, PasswordResetTokenRepository passwordTokenRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeUserPassword
(String user, String newPassword) void
createPasswordResetTokenForUser
(users user, String token) void
createVerificationTokenForUser
(users user, String token) void
void
deleteUserByName
(String username) findByUsername
(String username) findCommandByEmail
(String email) findCommandByName
(String username) findInfoByEmail
(String email) getEmailAddr
(String username) boolean
HasUserRole
(String strRoletoValidate) listAll()
void
saveOrUpdate
(users domainObject) saveUserCommand
(UserCommand userCommand) void
setServices
(EncryptionService encryptionService, RoleService roleService) void
setUserRepositories
(UserRepository userRepository, AuthoritiesRepository authoritiesRepo, User_infoRepository inforepository)
-
Constructor Details
-
UserServiceImpl
public UserServiceImpl(UserRepository userRepository, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, UserToUserCommand userToUserCommand, UserCommandToUser userCommandToUser, UserInfoToUserCommand userInfoToUserCommand, VerificationTokenRepository tokenRepository, PasswordResetTokenRepository passwordTokenRepository)
-
-
Method Details
-
setUserRepositories
@Autowired public void setUserRepositories(UserRepository userRepository, AuthoritiesRepository authoritiesRepo, User_infoRepository inforepository) - Parameters:
authoritiesRepo
- Autowiring the Components
-
setServices
-
listAll
- Specified by:
listAll
in interfaceCRUDService<users>
-
getById
- Specified by:
getById
in interfaceCRUDService<users>
-
saveOrUpdate
- Specified by:
saveOrUpdate
in interfaceCRUDService<users>
-
delete
- Specified by:
delete
in interfaceCRUDService<users>
-
findByUsername
- Specified by:
findByUsername
in interfaceUserService
-
findCommandByName
- Specified by:
findCommandByName
in interfaceUserService
-
saveUserCommand
- Specified by:
saveUserCommand
in interfaceUserService
-
deleteUserByName
- Specified by:
deleteUserByName
in interfaceUserService
-
findCommandByEmail
- Specified by:
findCommandByEmail
in interfaceUserService
-
findInfoByEmail
- Specified by:
findInfoByEmail
in interfaceUserService
-
createPasswordResetTokenForUser
- Specified by:
createPasswordResetTokenForUser
in interfaceUserService
-
getEmailAddr
- Specified by:
getEmailAddr
in interfaceUserService
-
changeUserPassword
- Specified by:
changeUserPassword
in interfaceUserService
-
createVerificationTokenForUser
- Specified by:
createVerificationTokenForUser
in interfaceUserService
-
HasUserRole
- Specified by:
HasUserRole
in interfaceUserService
-