Class Author

java.lang.Object
com.linecorp.centraldogma.common.Author

public class Author extends Object
An author of a Commit.
  • Field Details

    • SYSTEM

      public static final Author SYSTEM
      The system author.
    • DEFAULT

      public static final Author DEFAULT
      The default author which is used when security is disabled.
    • UNKNOWN

      public static final Author UNKNOWN
      An unknown author.
  • Constructor Details

    • Author

      @Deprecated public Author(String email)
      Deprecated.
      Creates a new instance with the specified e-mail address.
    • Author

      public Author(String name, String email)
      Creates a new instance with the specified name and e-mail address.
  • Method Details

    • ofEmail

      public static Author ofEmail(String email)
      Create a new Author with the email. The name() will be set to the username of the email.
    • name

      public String name()
      Returns the name of the author.
    • email

      public String email()
      Returns the e-mail address of the author.
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object