Class ChangeNoteUtil

java.lang.Object
com.google.gerrit.server.notedb.ChangeNoteUtil

public class ChangeNoteUtil extends Object
  • Constructor Details

  • Method Details

    • getChangeNoteJson

      public ChangeNoteJson getChangeNoteJson()
    • formatAccountIdentString

      public static String formatAccountIdentString(Account.Id account, String accountIdAsEmail)
    • newAccountIdIdent

      public org.eclipse.jgit.lib.PersonIdent newAccountIdIdent(Account.Id accountId, Instant when, org.eclipse.jgit.lib.PersonIdent serverIdent)
      Returns a PersonIdent that contains the account ID, but not the user's name or email address.
    • getAccountIdAsUsername

      public static String getAccountIdAsUsername(Account.Id accountId)
      Returns the string "Gerrit User " + accountId, to pseudonymize user names.
    • getAccountIdAsEmailAddress

      public String getAccountIdAsEmailAddress(Account.Id accountId)
    • parseCommitMessageRange

      public static Optional<ChangeNoteUtil.CommitMessageRange> parseCommitMessageRange(org.eclipse.jgit.revwalk.RevCommit commit)