Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for maskEmail (0.07 sec)

  1. src/test/java/org/codelibs/fess/taglib/FessFunctionsTest.java

            String value;
    
            value = FessFunctions.maskEmail(null);
            assertEquals("", value);
    
            value = FessFunctions.maskEmail("");
            assertEquals("", value);
    
            value = FessFunctions.maskEmail("aaa bbb ccc");
            assertEquals("aaa bbb ccc", value);
    
            value = FessFunctions.maskEmail("******@****.***");
            assertEquals("******@****.***", value);
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/main/webapp/WEB-INF/fe.tld

      </function>
    
      <function>
        <description>Mask e-mail address.</description>
        <name>maskEmail</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>java.lang.String maskEmail(java.lang.String)</function-signature>
        <example>${fe:maskEmail(doc.content_description)}</example>
      </function>
    
      <function>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Dec 23 06:18:48 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                    .map(user -> user.hasRoles(roles) || user.hasRoles(ComponentUtil.getFessConfig().getAuthenticationAdminRolesAsArray()))
                    .orElse(false);
        }
    
        public static String maskEmail(final String value) {
            if (value == null) {
                return StringUtil.EMPTY;
            }
            return EMAIL_ADDRESS_PATTERN.matcher(value).replaceAll("******@****.***");
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top