Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getSearchRoleByUser (0.19 sec)

  1. src/main/java/org/codelibs/fess/app/web/base/login/AzureAdCredential.java

                        logger.debug("uniqueId:{} displayableId:{}", uniqueId, displayableId);
                    }
                    permissionSet.add(systemHelper.getSearchRoleByUser(uniqueId));
                    permissionSet.add(systemHelper.getSearchRoleByUser(displayableId));
                    if (ComponentUtil.getFessConfig().isAzureAdUseDomainServices() && displayableId.indexOf('@') >= 0) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/PermissionHelper.java

                return null;
            }
            if (lower.startsWith(userPrefix)) {
                if (permission.length() > userPrefix.length()) {
                    return aclPrefix + systemHelper.getSearchRoleByUser(permission.substring(userPrefix.length()));
                }
                return null;
            }
            if (lower.startsWith(groupPrefix)) {
                if (permission.length() > groupPrefix.length()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java

                    final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
                    final Set<String> permissionSet = new HashSet<>();
                    permissionSet.add(systemHelper.getSearchRoleByUser(name));
                    stream(groups).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByGroup(s))));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

        }
    
        public void test_getSearchRole() {
            assertEquals("1test", systemHelper.getSearchRoleByUser("test"));
            assertEquals("Rtest", systemHelper.getSearchRoleByRole("test"));
            assertEquals("2test", systemHelper.getSearchRoleByGroup("test"));
    
            assertEquals("1", systemHelper.getSearchRoleByUser(""));
            assertEquals("R", systemHelper.getSearchRoleByRole(""));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/base/login/SamlCredential.java

                    final SystemHelper systemHelper = ComponentUtil.getSystemHelper();
                    final Set<String> permissionSet = new HashSet<>();
                    permissionSet.add(systemHelper.getSearchRoleByUser(nameId));
                    stream(groups).of(stream -> stream.forEach(s -> permissionSet.add(systemHelper.getSearchRoleByGroup(s))));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            if (StringUtil.isNotBlank(permission)) {
                return permission.startsWith(ComponentUtil.getFessConfig().getRoleSearchUserPrefix());
            }
            return false;
        }
    
        public String getSearchRoleByUser(final String name) {
            return createSearchRole(ComponentUtil.getFessConfig().getRoleSearchUserPrefix(), name);
        }
    
        public String getSearchRoleByGroup(final String name) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/ldap/LdapManager.java

            final Set<String> roleSet = new HashSet<>();
    
            if (fessConfig.isLdapRoleSearchUserEnabled()) {
                roleSet.add(normalizePermissionName(systemHelper.getSearchRoleByUser(ldapUser.getName())));
            }
    
            // LDAP: cn=%s
            // AD: (&(objectClass=user)(sAMAccountName=%s))
            final String filter = String.format(accountFilter, ldapUser.getName());
    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