java.lang.Object
com.linecorp.centraldogma.server.metadata.User
All Implemented Interfaces:
Identifiable, Serializable
Direct Known Subclasses:
UserWithToken

public class User extends Object implements Identifiable, Serializable
A user.
See Also:
  • Field Details

    • LEVEL_USER

      public static final List<String> LEVEL_USER
    • LEVEL_ADMIN

      public static final List<String> LEVEL_ADMIN
    • DEFAULT

      public static final User DEFAULT
    • ADMIN

      public static final User ADMIN
  • Constructor Details

  • Method Details

    • login

      public String login()
      Returns the login ID of the user.
    • name

      public String name()
      Returns the human friendly name of the user.
    • email

      public String email()
      Returns the e-mail address of the user.
    • roles

      public List<String> roles()
      Returns the roles of the user.
    • id

      public String id()
      Description copied from interface: Identifiable
      Returns the String-formatted identifier.
      Specified by:
      id in interface Identifiable
    • isAdmin

      public boolean isAdmin()
      Returns true if this user has administrative privileges.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object