Class UserFactory

    • Constructor Detail

      • UserFactory

        public UserFactory()
    • Method Detail

      • getUser

        public User getUser​(IUser user,
                            java.util.Locale locale)
        Specified by:
        getUser in interface IUserFactory
        Parameters:
        user - the domain User object we want to send to frontend
        locale - the locale for translations
        Returns:
        a full version of the user response object, that has all of its attributes set
      • getSmallUser

        public User getSmallUser​(IUser user)
        Specified by:
        getSmallUser in interface IUserFactory
        Parameters:
        user - the domain User object we want to send to frontend
        Returns:
        a small version of the user response object, that has its large attributes (roles, groups, authorities...) cleared
      • getUser

        protected User getUser​(IUser user)