@Service public class UserAccountServiceImpl extends Object implements UserAccountService
MIN_PASSWORD_LENGTH| Constructor and Description |
|---|
UserAccountServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
User |
getCurrentUser()
Returns the currently logged in user
|
void |
updateCurrentUser(User updatedCurrentUser)
Update the currently logged in user
|
boolean |
validateCurrentUserPassword(String password)
Validates the password of the current logged in user
|
@Transactional(readOnly=true) public User getCurrentUser()
UserAccountServicegetCurrentUser in interface UserAccountService@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_USER\')") @Transactional public void updateCurrentUser(User updatedCurrentUser)
UserAccountServiceupdateCurrentUser in interface UserAccountServiceupdatedCurrentUser - updated user@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_USER\')") @Transactional public boolean validateCurrentUserPassword(String password)
UserAccountServicevalidateCurrentUserPassword in interface UserAccountServiceCopyright © 2018 Pivotal Software, Inc.. All rights reserved.