Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isUserPermission (0.09 sec)

  1. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

        public void test_isUserPermission() {
            assertTrue(systemHelper.isUserPermission("1test"));
    
            assertFalse(systemHelper.isUserPermission(null));
            assertFalse(systemHelper.isUserPermission(""));
            assertFalse(systemHelper.isUserPermission(" "));
            assertFalse(systemHelper.isUserPermission("2test"));
            assertFalse(systemHelper.isUserPermission("Rtest"));
        }
    
        public void test_getSearchRole() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/SystemHelper.java

                runtime.registerData("eolLink", getHelpUrl(eolLink));
            }
        }
    
        protected boolean isEoled() {
            return getCurrentTimeAsLong() > eolTime;
        }
    
        public boolean isUserPermission(final String permission) {
            if (StringUtil.isNotBlank(permission)) {
                return permission.startsWith(ComponentUtil.getFessConfig().getRoleSearchUserPrefix());
            }
            return false;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top