Package io.goobi.viewer.api.rest.model
Class UserJsonFacade
java.lang.Object
io.goobi.viewer.api.rest.model.UserJsonFacade
Simplified representation of a
User
object for json (de-)serialization.- Author:
- florian
-
Constructor Summary
ConstructorDescriptionUserJsonFacade
(UserJsonFacade orig) UserJsonFacade
(User user) UserJsonFacade
(User user, javax.servlet.http.HttpServletRequest request) UserJsonFacade
(Long userId, String name, String avatar, long score, boolean active, boolean suspended, boolean anonymous, boolean superuser) UserJsonFacade
(String name) -
Method Summary
-
Constructor Details
-
UserJsonFacade
- Parameters:
user
-request
-
-
UserJsonFacade
- Parameters:
user
-
-
UserJsonFacade
- Parameters:
orig
-
-
UserJsonFacade
public UserJsonFacade(Long userId, String name, String avatar, long score, boolean active, boolean suspended, boolean anonymous, boolean superuser) - Parameters:
userId
-name
-avatar
-score
-active
-suspended
-anonymous
-superuser
-
-
UserJsonFacade
- Parameters:
name
-
-
-
Method Details
-
getUserId
- Returns:
- the userId
-
getName
- Returns:
- the name
-
getAvatar
- Returns:
- the avatar
-
getScore
public long getScore()- Returns:
- the score
-
isActive
public boolean isActive()- Returns:
- the active
-
isSuspended
public boolean isSuspended()- Returns:
- the suspended
-
isAnonymous
public boolean isAnonymous()- Returns:
- the anonymous
-
isSuperuser
public boolean isSuperuser()- Returns:
- the superuser
-
toString
-