Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 161 for orElse (0.37 sec)

  1. 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)
  2. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

                    }
                }
    
                if (StringUtil.isNotBlank(userCode)) {
                    updateUserSessionId(userCode);
                }
                return userCode;
            }).orElse(null);
        }
    
        /**
         * Extracts the user code from the user bean stored in the session.
         * This method retrieves the authenticated user information and creates an encrypted user code.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  3. 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)
  4. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

         */
        public Set<String> build(final SearchRequestType searchRequestType) {
            final Set<String> roleSet = new HashSet<>();
            final HttpServletRequest request = LaRequestUtil.getOptionalRequest().orElse(null);
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final boolean isApiRequest =
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. 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)
  6. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

                parser.parse(new InputSource(is));
            }
            parser.getWebConfig().ifPresent(c -> {
                logger.debug(c.toString());
            }).orElse(() -> fail());
            parser.getFileConfig().ifPresent(c -> {
                logger.debug(c.toString());
            }).orElse(() -> fail());
            LabelType[] labelTypes = parser.getLabelTypes();
            assertEquals(3, labelTypes.length);
        }
    
        public void test_escape() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/scheduler/ApiAdminSchedulerAction.java

                } catch (final Exception e) {
                    throwValidationErrorApi(messages -> {
                        messages.addErrorsFailedToStartJob(GLOBAL, entity.getName());
                    });
                }
            }).orElse(() -> {
                throwValidationErrorApi(messages -> {
                    messages.addErrorsFailedToStartJob(GLOBAL, id);
                });
            });
            return asJson(new ApiResponse().status(Status.OK).result());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/StemmerOverrideService.java

                stemmerOvberridePager.setPageNumberList(stemmerOvberrideList.createPageNumberList());
    
                return (List<StemmerOverrideItem>) stemmerOvberrideList;
            }).orElse(Collections.emptyList());
        }
    
        /**
         * Retrieves the stemmer override dictionary file by ID.
         *
         * @param dictId The ID of the stemmer override dictionary to retrieve
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/CharMappingService.java

                charMappingPager.setPageNumberList(charMappingList.createPageNumberList());
    
                return (List<CharMappingItem>) charMappingList;
            }).orElse(Collections.emptyList());
        }
    
        /**
         * Retrieves the character mapping file for the specified dictionary ID.
         * <p>
         * This method looks up the dictionary file and ensures it is a character mapping file
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

       * iterable is empty.
       *
       * <p><b>Java 8+ users:</b> the {@code Stream} equivalent to this method is {@code
       * stream.collect(MoreCollectors.toOptional()).orElse(defaultValue)}.
       *
       * @throws IllegalArgumentException if the iterator contains multiple elements
       */
      @ParametricNullness
      public static <T extends @Nullable Object> T getOnlyElement(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 43.6K bytes
    - Viewed (0)
Back to top