Class UserAccountServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.molgenis.data.security.auth.User getCurrentUser()
      Returns the currently logged in user
      void setPasswordEncoder​(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
      Testability
      void updateCurrentUser​(org.molgenis.data.security.auth.User updatedCurrentUser)
      Update the currently logged in user
      boolean validateCurrentUserPassword​(java.lang.String password)
      Validates the password of the current logged in user
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UserAccountServiceImpl

        public UserAccountServiceImpl()
    • Method Detail

      • getCurrentUser

        @Transactional(readOnly=true)
        public org.molgenis.data.security.auth.User getCurrentUser()
        Description copied from interface: UserAccountService
        Returns the currently logged in user
        Specified by:
        getCurrentUser in interface UserAccountService
      • updateCurrentUser

        @PreAuthorize("hasAnyRole(\'ROLE_SU\', \'ROLE_USER\')")
        @Transactional
        public void updateCurrentUser​(org.molgenis.data.security.auth.User updatedCurrentUser)
        Description copied from interface: UserAccountService
        Update the currently logged in user
        Specified by:
        updateCurrentUser in interface UserAccountService
        Parameters:
        updatedCurrentUser - updated user
      • validateCurrentUserPassword

        @PreAuthorize("hasAnyRole(\'ROLE_SU\', \'ROLE_USER\')")
        @Transactional
        public boolean validateCurrentUserPassword​(java.lang.String password)
        Description copied from interface: UserAccountService
        Validates the password of the current logged in user
        Specified by:
        validateCurrentUserPassword in interface UserAccountService
      • setPasswordEncoder

        public void setPasswordEncoder​(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder)
        Testability