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 Alpers
-
Constructor Summary
ConstructorsConstructorDescriptionUserJsonFacade(UserJsonFacade orig) UserJsonFacade(User user) UserJsonFacade(User user, 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- the user to create the facade fromrequest- current HTTP request for resolving avatar URL
-
UserJsonFacade
- Parameters:
user- the user to create the facade from
-
UserJsonFacade
- Parameters:
orig- the instance to copy all fields from
-
UserJsonFacade
public UserJsonFacade(Long userId, String name, String avatar, long score, boolean active, boolean suspended, boolean anonymous, boolean superuser) - Parameters:
userId- database ID of the username- display name of the useravatar- URL of the user's avatar imagescore- gamification score of the useractive- whether the user account is activesuspended- whether the user account is suspendedanonymous- whether the user is an anonymous guestsuperuser- whether the user has superuser privileges
-
UserJsonFacade
- Parameters:
name- display name for the anonymous user facade
-
-
Method Details