@Service public class UserAccountServiceImpl extends Object implements UserAccountService
MIN_PASSWORD_LENGTH| Constructor and Description |
|---|
UserAccountServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
MolgenisUser |
getCurrentUser()
Returns the currently logged in user
|
Iterable<MolgenisGroup> |
getCurrentUserGroups()
Returns the groups to which the currently logged in user belongs
|
void |
updateCurrentUser(MolgenisUser updatedCurrentUser)
Update the currently logged in user
|
boolean |
validateCurrentUserPassword(String password)
Validates the password of the current logged in user
|
@Transactional(readOnly=true) public MolgenisUser getCurrentUser()
UserAccountServicegetCurrentUser in interface UserAccountService@Transactional(readOnly=true) public Iterable<MolgenisGroup> getCurrentUserGroups()
UserAccountServicegetCurrentUserGroups in interface UserAccountService@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_WRITE_USERACCOUNT\')") @Transactional public void updateCurrentUser(MolgenisUser updatedCurrentUser)
UserAccountServiceupdateCurrentUser in interface UserAccountServiceupdatedCurrentUser - updated user@PreAuthorize(value="hasAnyRole(\'ROLE_SU\', \'ROLE_PLUGIN_READ_USERACCOUNT\')") @Transactional public boolean validateCurrentUserPassword(String password)
UserAccountServicevalidateCurrentUserPassword in interface UserAccountServiceCopyright © 2016. All Rights Reserved.