Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for getUserBean (0.12 sec)

  1. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

            fessLoginAssist.findLoginUser(new LocalUserCredential(getUserBean().get().getUserId(), form.oldPassword)).orElseGet(() -> {
                throwValidationError(messages -> {
                    messages.addErrorsNoUserForChangingPassword(GLOBAL);
                }, validationErrorLambda);
                return null;
            });
        }
    
        protected HtmlResponse asIndexHtml() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/base/FessBaseAction.java

        //                                                                           =========
        @Override
        protected OptionalThing<FessUserBean> getUserBean() { // to return as concrete class
            return fessLoginAssist.getSavedUserBean();
        }
    
        @Override
        protected String myAppType() { // for framework
            return APP_TYPE;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/login/LoginAction.java

                form.clearSecurityInfo();
                return getUserBean().map(u -> asHtml(virtualHost(path_Login_NewpasswordJsp)).useForm(PasswordForm.class))
                        .orElseGet(() -> redirect(LoginAction.class));
            };
            validatePasswordForm(form, toIndexPage);
            final String username = getUserBean().map(FessUserBean::getUserId).get();
            try {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java

        @Override
        protected void setupHtmlData(final ActionRuntime runtime) {
            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);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/user/ApiAdminUserAction.java

            final User entity = userService.getUser(id).orElseGet(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id));
                return null;
            });
            getUserBean().ifPresent(u -> {
                if (u.getFessUser() instanceof User && entity.getName().equals(u.getUserId())) {
                    throwValidationErrorApi(messages -> messages.addErrorsCouldNotDeleteLoggedInUser(GLOBAL));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

            Map<String, Object> doc = null;
            try {
                doc = searchHelper.getDocumentByDocId(form.docId,
                        new String[] { fessConfig.getIndexFieldUrl(), fessConfig.getIndexFieldConfigId() }, getUserBean()).orElse(null);
            } catch (final Exception e) {
                logger.warn("Failed to request: {}", form.docId, e);
            }
            if (doc == null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/base/FessLoginAction.java

    import org.lastaflute.web.response.HtmlResponse;
    
    public abstract class FessLoginAction extends FessSearchAction {
        protected HtmlResponse getHtmlResponse() {
            return getUserBean().map(this::redirectByUser).orElse(asHtml(virtualHost(path_Login_IndexJsp)));
        }
    
        protected HtmlResponse redirectByUser(final FessUserBean user) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/logout/LogoutAction.java

        //                                                                      ==============
    
        @Execute
        public HtmlResponse index() {
            final OptionalThing<FessUserBean> userBean = getUserBean();
            activityHelper.logout(userBean);
            final String redirectUrl = userBean.map(user -> ComponentUtil.getSsoManager().logout(user)).orElse(null);
            fessLoginAssist.logout();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/cache/CacheAction.java

                return redirectToLogin();
            }
    
            Map<String, Object> doc = null;
            try {
                doc = searchHelper.getDocumentByDocId(form.docId, queryFieldConfig.getCacheResponseFields(), getUserBean()).orElse(null);
            } catch (final Exception e) {
                logger.warn("Failed to request: {}", form.docId, e);
            }
            if (doc == null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/base/FessSearchAction.java

            if (!labelTypeItems.isEmpty() && !form.fields.containsKey(FessSearchAction.LABEL_FIELD)) {
                final String[] defaultLabelValues = fessConfig.getDefaultLabelValues(getUserBean());
                if (defaultLabelValues.length > 0) {
                    form.fields.put(FessSearchAction.LABEL_FIELD, defaultLabelValues);
                }
            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top