Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isUserPermission (0.14 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)
  3. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                return true;
            }
    
            final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
            for (final String permission : ldapUser.getPermissions()) {
                if (!systemHelper.isUserPermission(permission)) {
                    return true;
                }
            }
            return false;
        }
    
        protected LdapUser createLdapUser(final String username, final Hashtable<String, String> env) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 65.9K bytes
    - Viewed (0)
Back to top