Package com.google.gerrit.server.notedb
Class ChangeNoteUtil
java.lang.Object
com.google.gerrit.server.notedb.ChangeNoteUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Helper class for JSON serialization.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatAccountIdentString
(Account.Id account, String accountIdAsEmail) getAccountIdAsEmailAddress
(Account.Id accountId) static String
getAccountIdAsUsername
(Account.Id accountId) Returns the string"Gerrit User " + accountId
, to pseudonymize user names.org.eclipse.jgit.lib.PersonIdent
newAccountIdIdent
(Account.Id accountId, Instant when, org.eclipse.jgit.lib.PersonIdent serverIdent) Returns aPersonIdent
that contains the account ID, but not the user's name or email address.parseCommitMessageRange
(org.eclipse.jgit.revwalk.RevCommit commit)
-
Constructor Details
-
ChangeNoteUtil
-
-
Method Details
-
getChangeNoteJson
-
formatAccountIdentString
-
newAccountIdIdent
public org.eclipse.jgit.lib.PersonIdent newAccountIdIdent(Account.Id accountId, Instant when, org.eclipse.jgit.lib.PersonIdent serverIdent) Returns aPersonIdent
that contains the account ID, but not the user's name or email address. -
getAccountIdAsUsername
Returns the string"Gerrit User " + accountId
, to pseudonymize user names. -
getAccountIdAsEmailAddress
-
parseCommitMessageRange
public static Optional<ChangeNoteUtil.CommitMessageRange> parseCommitMessageRange(org.eclipse.jgit.revwalk.RevCommit commit)
-