Class UserFactory
- java.lang.Object
-
- com.netgrif.application.engine.auth.web.responsebodies.UserFactory
-
- All Implemented Interfaces:
IUserFactory
public class UserFactory extends java.lang.Object implements IUserFactory
-
-
Constructor Summary
Constructors Constructor Description UserFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
getSmallUser(IUser user)
protected User
getUser(IUser user)
User
getUser(IUser user, java.util.Locale locale)
-
-
-
Method Detail
-
getUser
public User getUser(IUser user, java.util.Locale locale)
- Specified by:
getUser
in interfaceIUserFactory
- Parameters:
user
- the domain User object we want to send to frontendlocale
- 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 interfaceIUserFactory
- 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
-
-