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 UsergetSmallUser(IUser user)protected UsergetUser(IUser user)UsergetUser(IUser user, java.util.Locale locale)
-
-
-
Method Detail
-
getUser
public User getUser(IUser user, java.util.Locale locale)
- Specified by:
getUserin 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:
getSmallUserin 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
-
-