Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getAuthenticationAdminRolesAsArray (0.2 sec)

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

        }
    
        protected HtmlResponse redirectByUser(final FessUserBean user) {
            if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) {
                return redirect(AdminDashboardAction.class);
            }
            final Class<? extends FessAdminAction> actionClass = AdminAction.getAdminActionClass(user);
            if (actionClass != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

            super.setupHtmlData(runtime);
            systemHelper.setupAdminHtmlData(this, runtime);
    
            final Boolean editable = getUserBean()
                    .map(user -> user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray()) || user.hasRole(getActionRole())).orElse(false);
            runtime.registerData("editable", editable);
            runtime.registerData("editableClass", editable ? StringUtil.EMPTY : "disabled");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

            if (FessAdminAction.class.isAssignableFrom(resource.getActionClass())) {
                getSavedUserBean().ifPresent(user -> {
                    if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) {
                        return;
                    }
                    final Method executeMethod = resource.getExecuteMethod();
                    final Secured secured = executeMethod.getAnnotation(Secured.class);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java

            runtime.registerData("adminUser", fessConfig.isAdminUser(username) || fessLoginAssist.getSavedUserBean()
                    .map(user -> user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())).orElse(false));
    
            runtime.registerData("pageLoginLink", fessConfig.isLoginLinkEnabled());
        }
    
        // ===================================================================================
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/QueryHelper.java

                final String query) {
            userBean.map(user -> {
                if (user.hasRoles(ComponentUtil.getFessConfig().getAuthenticationAdminRolesAsArray())) {
                    return Constants.SEARCH_PREFERENCE_LOCAL;
                }
                return user.getUserId();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            return loginAssist.getSavedUserBean()
                    .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;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

        }
    
        //
        // fess_*.properties
        //
    
        String getAuthenticationAdminRoles();
    
        default String[] getAuthenticationAdminRolesAsArray() {
            String[] roles = (String[]) propMap.get(AUTHENTICATION_ADMIN_ROLES);
            if (roles == null) {
                roles = getAuthenticationAdminRoles().split(",");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:15 UTC 2024
    - 87.2K bytes
    - Viewed (0)
Back to top