Class UserAccountServiceImpl

    • 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​(String password)
        Description copied from interface: UserAccountService
        Validates the password of the current logged in user
        Specified by:
        validateCurrentUserPassword in interface UserAccountService