Package com.google.gerrit.server.util
Class AccountTemplateUtil
java.lang.Object
com.google.gerrit.server.util.AccountTemplateUtil
Utility functions for text that can be persisted in data storage and should not contain user
identifiable information, e.g.
ChangeMessage
or AttentionSetUpdate.reason()
.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getAccountTemplate
(Account.Id accountId) static com.google.common.collect.ImmutableSet<Account.Id>
parseTemplates
(String textTemplate) Returns account ids that are used in text, that might containACCOUNT_TEMPLATE
.replaceTemplates
(String messageTemplate) Builds user-readable text from text, that might containACCOUNT_TEMPLATE
.
-
Field Details
-
ACCOUNT_TEMPLATE
Template to represent account in pseudonymized form in text, that might be persisted in data storage.- See Also:
-
ACCOUNT_TEMPLATE_REGEX
- See Also:
-
ACCOUNT_TEMPLATE_PATTERN
-
-
Method Details
-
parseTemplates
public static com.google.common.collect.ImmutableSet<Account.Id> parseTemplates(String textTemplate) Returns account ids that are used in text, that might containACCOUNT_TEMPLATE
. -
getAccountTemplate
-
replaceTemplates
Builds user-readable text from text, that might containACCOUNT_TEMPLATE
.
-