Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 106 for isPresent (2.4 sec)

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

        //                                                                      ==============
    
        @Execute
        public HtmlResponse index() {
            getSession().ifPresent(session -> session.removeAttribute(INVALID_OLD_PASSWORD));
            return asIndexPage(null).useForm(LoginForm.class);
        }
    
        private HtmlResponse asIndexPage(final LoginForm form) {
            if (form != null) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/service/KuromojiService.java

            getKuromojiFile(dictId).ifPresent(file -> {
                if (kuromojiItem.getId() == 0) {
                    file.insert(kuromojiItem);
                } else {
                    file.update(kuromojiItem);
                }
            });
        }
    
        public void delete(final String dictId, final KuromojiItem kuromojiItem) {
            getKuromojiFile(dictId).ifPresent(file -> {
                file.delete(kuromojiItem);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/service/UserService.java

            final boolean changed = ComponentUtil.getAuthenticationManager().changePassword(username, password);
            if (changed) {
                userBhv.selectEntity(cb -> cb.query().setName_Equal(username)).ifPresent(entity -> {
                    final String encodedPassword = fessLoginAssist.encryptPassword(password);
                    entity.setPassword(encodedPassword);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/crawlinginfo/ApiAdminCrawlinginfoAction.java

            })).status(Status.OK).result());
        }
    
        // DELETE /api/admin/crawlinginfo/log/{id}
        @Execute
        public JsonResponse<ApiResult> delete$log(final String id) {
            crawlingInfoService.getCrawlingInfo(id).ifPresent(entity -> {
                try {
                    crawlingInfoService.delete(entity);
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/failureurl/ApiAdminFailureurlAction.java

            })).status(Status.OK).result());
        }
    
        // DELETE /api/admin/failureurl/log/{id}
        @Execute
        public JsonResponse<ApiResult> delete$log(final String id) {
            failureUrlService.getFailureUrl(id).ifPresent(entity -> {
                try {
                    failureUrlService.delete(entity);
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/failureurl/AdminFailureurlAction.java

            return asHtml(path_AdminFailureurl_AdminFailureurlDetailsJsp).useForm(EditForm.class, op -> {
                op.setup(form -> {
                    failureUrlService.getFailureUrl(id).ifPresent(entity -> {
                        copyBeanToBean(entity, form, copyOp -> {
                            copyOp.excludeNull();
                        });
                        form.crudMode = crudMode;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/joblog/AdminJoblogAction.java

            saveToken();
            return asHtml(path_AdminJoblog_AdminJoblogDetailsJsp).useForm(EditForm.class, op -> {
                op.setup(form -> {
                    jobLogService.getJobLog(id).ifPresent(entity -> {
                        copyBeanToBean(entity, form, copyOp -> {
                            copyOp.excludeNull();
                        });
                        form.crudMode = crudMode;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/boostdoc/ApiAdminBoostdocAction.java

        }
    
        // DELETE /api/admin/boostdoc/setting/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            boostDocumentRuleService.getBoostDocumentRule(id).ifPresent(entity -> {
                try {
                    boostDocumentRuleService.delete(entity);
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/group/ApiAdminGroupAction.java

                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: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java

            form.crudMode = CrudMode.CREATE;
            getDoc(form).ifPresent(entity -> {
                form.doc = fessConfig.convertToEditableDoc(entity);
            });
            return asEditHtml();
        }
    
        @Execute
        @Secured({ ROLE })
        public HtmlResponse edit(final EditForm form) {
            validate(form, messages -> {}, this::asListHtml);
            getDoc(form).ifPresent(entity -> {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top