Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getRoleNames (0.11 sec)

  1. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public String[] getRoles() {
            return user.getRoleNames();
        }
    
        public String[] getGroups() {
            return user.getGroupNames();
        }
    
        public boolean isEditable() {
            return user.isEditable();
        }
    
        public boolean hasRole(final String role) {
            return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role)));
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/entity/FessUser.java

     */
    package org.codelibs.fess.entity;
    
    import java.io.Serializable;
    
    public interface FessUser extends Serializable {
    
        String getName();
    
        String[] getRoleNames();
    
        String[] getGroupNames();
    
        String[] getPermissions();
    
        default boolean isEditable() {
            return false;
        }
    
        default boolean refresh() {
            return false;
        }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 978 bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/login/OpenIdConnectCredential.java

                this.roles = roles;
            }
    
            @Override
            public String getName() {
                return name;
            }
    
            @Override
            public String[] getRoleNames() {
                return roles;
            }
    
            @Override
            public String[] getGroupNames() {
                return groups;
            }
    
            @Override
    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/main/java/org/codelibs/fess/es/user/exentity/User.java

        }
    
        public String getId() {
            return asDocMeta().id();
        }
    
        public void setId(final String id) {
            asDocMeta().id(id);
        }
    
        @Override
        public String[] getRoleNames() {
            return stream(getRoles()).get(stream -> stream.map(this::decode).toArray(n -> new String[n]));
        }
    
        @Override
        public String[] getGroupNames() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/base/login/AzureAdCredential.java

            }
    
            @Override
            public String getName() {
                return authResult.getUserInfo().getDisplayableId();
            }
    
            @Override
            public String[] getRoleNames() {
                return roles;
            }
    
            @Override
            public String[] getGroupNames() {
                return groups;
            }
    
            @Override
            public String[] getPermissions() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/base/login/SamlCredential.java

                this.roles = roles;
            }
    
            @Override
            public String getName() {
                return nameId;
            }
    
            @Override
            public String[] getRoleNames() {
                return roles;
            }
    
            @Override
            public String[] getGroupNames() {
                return groups;
            }
    
            @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/ldap/LdapUser.java

                } else {
                    permissions = StringUtil.EMPTY_STRINGS;
                }
            }
            return permissions;
        }
    
        @Override
        public String[] getRoleNames() {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            return stream(getPermissions()).get(stream -> stream.filter(s -> s.startsWith(fessConfig.getRoleSearchRolePrefix()))
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                                        });
                            });
    
                            final List<String> newRoleList = stream(user.getRoleNames()).get(stream -> stream.collect(Collectors.toList()));
                            stream(user.getRoleNames()).of(stream -> stream.forEach(name -> {
                                if (oldRoleList.contains(name)) {
                                    oldRoleList.remove(name);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 65.9K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

                this.permissions = permissions;
    
            }
    
            @Override
            public String getName() {
                return name;
            }
    
            @Override
            public String[] getRoleNames() {
                return new String[0];
            }
    
            @Override
            public String[] getGroupNames() {
                return new String[0];
            }
    
            @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top