Class ChangeNoteUtil


  • public class ChangeNoteUtil
    extends Object
    • Constructor Detail

      • ChangeNoteUtil

        @Inject
        public ChangeNoteUtil​(ChangeNoteJson changeNoteJson,
                              String serverId)
    • Method Detail

      • formatAccountIdentString

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

        public org.eclipse.jgit.lib.PersonIdent newAccountIdIdent​(Account.Id accountId,
                                                                  Date 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)