Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for hasRoles (0.12 sec)

  1. src/main/java/org/codelibs/fess/app/web/admin/AdminAction.java

            if (user.hasRoles(getActionRoles(AdminSchedulerAction.ROLE))) {
                return AdminSchedulerAction.class;
            }
            if (user.hasRoles(getActionRoles(AdminDesignAction.ROLE))) {
                return AdminDesignAction.class;
            }
            if (user.hasRoles(getActionRoles(AdminDictAction.ROLE))) {
                return AdminDictAction.class;
            }
            if (user.hasRoles(getActionRoles(AdminAccesstokenAction.ROLE))) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

            }
            final FessLoginAssist loginAssist = ComponentUtil.getComponent(FessLoginAssist.class);
            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) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/org/codelibs/fess/helper/QueryHelper.java

        public void processSearchPreference(final SearchRequestBuilder searchRequestBuilder, final OptionalThing<FessUserBean> userBean,
                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)
  5. src/main/java/org/codelibs/fess/api/engine/SearchEngineApiManager.java

                throws IOException, ServletException {
            final RequestManager requestManager = ComponentUtil.getRequestManager();
            if (!requestManager.findUserBean(FessUserBean.class).map(user -> user.hasRoles(acceptedRoles)).orElse(Boolean.FALSE)) {
                response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Unauthorized access: " + request.getServletPath());
                return;
            }
    
            try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Aug 15 08:29:24 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top