Class AccountTemplateUtil

    • Field Detail

      • ACCOUNT_TEMPLATE

        public static final String ACCOUNT_TEMPLATE
        Template to represent account in pseudonymized form in text, that might be persisted in data storage.
        See Also:
        Constant Field Values
      • ACCOUNT_TEMPLATE_PATTERN

        public static final Pattern ACCOUNT_TEMPLATE_PATTERN
    • Method Detail

      • parseTemplates

        public static com.google.common.collect.ImmutableSet<Account.Id> parseTemplates​(String textTemplate)
        Returns account ids that are used in text, that might contain ACCOUNT_TEMPLATE.
      • getAccountTemplate

        public static String getAccountTemplate​(Account.Id accountId)
      • replaceTemplates

        public String replaceTemplates​(String messageTemplate)
        Builds user-readable text from text, that might contain ACCOUNT_TEMPLATE.