Package org.molgenis.security.user
Class UserAccountServiceImpl
- java.lang.Object
-
- org.molgenis.security.user.UserAccountServiceImpl
-
- All Implemented Interfaces:
UserAccountService
@Service public class UserAccountServiceImpl extends Object implements UserAccountService
-
-
Constructor Summary
Constructors Constructor Description UserAccountServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.molgenis.data.security.auth.UsergetCurrentUser()Returns the currently logged in uservoidupdateCurrentUser(org.molgenis.data.security.auth.User updatedCurrentUser)Update the currently logged in userbooleanvalidateCurrentUserPassword(String password)Validates the password of the current logged in user
-
-
-
Method Detail
-
getCurrentUser
@Transactional(readOnly=true) public org.molgenis.data.security.auth.User getCurrentUser()
Description copied from interface:UserAccountServiceReturns the currently logged in user- Specified by:
getCurrentUserin interfaceUserAccountService
-
updateCurrentUser
@PreAuthorize("hasAnyRole(\'ROLE_SU\', \'ROLE_USER\')") @Transactional public void updateCurrentUser(org.molgenis.data.security.auth.User updatedCurrentUser)Description copied from interface:UserAccountServiceUpdate the currently logged in user- Specified by:
updateCurrentUserin interfaceUserAccountService- Parameters:
updatedCurrentUser- updated user
-
validateCurrentUserPassword
@PreAuthorize("hasAnyRole(\'ROLE_SU\', \'ROLE_USER\')") @Transactional public boolean validateCurrentUserPassword(String password)Description copied from interface:UserAccountServiceValidates the password of the current logged in user- Specified by:
validateCurrentUserPasswordin interfaceUserAccountService
-
-