Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for orElse (0.04 sec)

  1. src/test/java/org/codelibs/fess/crawler/util/FieldConfigsTest.java

            assertFalse(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isCache).orElse(false));
            assertFalse(fieldConfigs.getConfig("foo").map(FieldConfigs.Config::isOverwrite).orElse(false));
            assertEquals("bar", fieldConfigs.getConfig("foo").map(FieldConfigs.Config::getValues).orElse(new String[0])[0]);
        }
    
        public void test_cache_true() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/NotificationHelper.java

            buf.append("{\"text\":\"");
            buf.append(LF);
            buf.append(StringEscapeUtils.escapeJson(discloser.getSavedSubject().orElse(StringUtil.EMPTY).trim()));
            buf.append(LF).append("```");
            buf.append(LF).append(StringEscapeUtils.escapeJson(discloser.getSavedPlainText().orElse(StringUtil.EMPTY).trim()));
            buf.append(LF).append("```\"}");
            return buf.toString();
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/opensearch/config/exentity/ScheduledJob.java

            return ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).map(LaScheduledJob::isExecutingNow).orElse(false);
        }
    
        public void start() {
            ComponentUtil.getJobManager().findJobByUniqueOf(LaJobUnique.of(getId())).ifPresent(job -> {
                job.launchNow();
            }).orElse(() -> {
                throw new JobNotFoundException(this);
            });
        }
    
        public void stop() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/service/KuromojiService.java

                kuromojiPager.setPageNumberList(kuromojiList.createPageNumberList());
    
                return (List<KuromojiItem>) kuromojiList;
            }).orElse(Collections.emptyList());
        }
    
        /**
         * Get a Kuromoji file.
         *
         * @param dictId The dictionary ID.
         * @return An optional entity of the Kuromoji file.
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

                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 Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/service/FavoriteLogService.java

                if (fessConfig.isLoggingSearchUseLogfile()) {
                    ComponentUtil.getSearchLogHelper().writeSearchLogEvent(favoriteLog);
                }
                return true;
            }).orElse(false);
        }
    
        /**
         * Retrieves a list of URLs that are in the user's favorites from the provided URL list.
         * This method filters the input URL list to return only those URLs that the specified user
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/StopwordsService.java

                stopwordsPager.setPageNumberList(stopwordsList.createPageNumberList());
    
                return (List<StopwordsItem>) stopwordsList;
            }).orElse(Collections.emptyList());
        }
    
        /**
         * Retrieves a stopwords file for a given dictionary ID.
         *
         * @param dictId The ID of the dictionary.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/SynonymService.java

                synonymPager.setPageNumberList(synonymList.createPageNumberList());
    
                return (List<SynonymItem>) synonymList;
            }).orElse(Collections.emptyList());
        }
    
        /**
         * Retrieves a synonym file for a given dictionary ID.
         *
         * @param dictId The ID of the dictionary.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/ProtwordsService.java

                protwordsPager.setPageNumberList(protwordsList.createPageNumberList());
    
                return (List<ProtwordsItem>) protwordsList;
            }).orElse(Collections.emptyList());
        }
    
        /**
         * Gets the protected words file for the specified dictionary ID.
         * @param dictId the dictionary ID
         * @return the protected words file if found
         */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/FessApiAdminAction.java

        protected boolean isAccessAllowed() {
            try {
                return accessTokenService.getPermissions(request)
                        .map(permissions -> fessConfig.isApiAdminAccessAllowed(permissions))
                        .orElse(false);
            } catch (final InvalidAccessTokenException e) {
                if (logger.isDebugEnabled()) {
                    logger.debug("Invalid access token.", e);
                }
                return false;
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 2.3K bytes
    - Viewed (0)
Back to top