Class UserJsonFacade

java.lang.Object
io.goobi.viewer.api.rest.model.UserJsonFacade

public class UserJsonFacade extends Object
Simplified representation of a User object for json (de-)serialization.
Author:
florian
  • Constructor Details

    • UserJsonFacade

      public UserJsonFacade(User user, javax.servlet.http.HttpServletRequest request)
      Parameters:
      user -
      request -
    • UserJsonFacade

      public UserJsonFacade(User user)
      Parameters:
      user -
    • UserJsonFacade

      public UserJsonFacade(UserJsonFacade orig)
      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

      public UserJsonFacade(String name)
      Parameters:
      name -
  • Method Details

    • getUserId

      public Long getUserId()
      Returns:
      the userId
    • getName

      public String getName()
      Returns:
      the name
    • getAvatar

      public String 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

      public String toString()
      Overrides:
      toString in class Object