Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 189 for or_else (4.19 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/labeltype/ApiAdminLabeltypeAction.java

                    logger.warn("Failed to process a request.", e);
                    throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToDeleteCrudTable(GLOBAL, buildThrowableMessage(e)));
                }
            }).orElse(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, id));
            });
            return asJson(new ApiResponse().status(Status.OK).result());
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/util/WebApiUtil.java

        }
    
        @SuppressWarnings("unchecked")
        public static <T> T getObject(final String name) {
            return LaRequestUtil.getOptionalRequest().map(req -> (T) req.getAttribute(name)).orElse(null);
        }
    
        public static void setError(final int statusCode, final String message) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

                                "No unique Source for %s:%s: %s and %s",
                                groupId, artifactId, a.getLocation(), b.getLocation()));
                    })
                    .orElse(null);
        }
    
        public void putSource(String groupId, String artifactId, FileModelSource source) {
            mappedSources
                    .computeIfAbsent(groupId + ":" + artifactId, k -> new HashSet<>())
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 26 17:04:44 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/dict/mapping/ApiAdminDictMappingAction.java

            charMappingService.getCharMappingItem(dictId, id).ifPresent(entity -> {
                charMappingService.delete(dictId, entity);
                saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
            }).orElse(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(id)));
            });
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/dict/stemmeroverride/ApiAdminDictStemmeroverrideAction.java

                stemmerOverrideService.delete(dictId, entity);
                saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
            }).orElse(() -> {
                throwValidationErrorApi(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, String.valueOf(id)));
            });
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContextBuilder.java

                                "No unique Source for %s:%s: %s and %s",
                                groupId, artifactId, a.getLocation(), b.getLocation()));
                    })
                    .orElse(null);
        }
    
        public void putSource(String groupId, String artifactId, ModelSource source) {
            mappedSources
                    .computeIfAbsent(groupId + ":" + artifactId, k -> new HashSet<>())
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. maven-model-builder/src/main/java/org/apache/maven/utils/Os.java

                            FAMILY_WIN9X,
                            FAMILY_WINDOWS,
                            FAMILY_ZOS)
                    .filter(Os::isFamily)
                    .findFirst()
                    .orElse(null);
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon May 13 09:53:45 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

                    if (host.getValue2().equalsIgnoreCase(headerValue)) {
                        return func.apply(host.getValue3());
                    }
                }
                return defaultValue;
            }).orElse(defaultValue);
        }
    
        public String[] getVirtualHostPaths() {
            return stream(ComponentUtil.getFessConfig().getVirtualHosts())
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/searchlist/AdminSearchlistAction.java

                form.seqNo = (Long) entity.remove(fessConfig.getIndexFieldSeqNo());
                form.primaryTerm = (Long) entity.remove(fessConfig.getIndexFieldPrimaryTerm());
            }).orElse(() -> {
                throwValidationError(messages -> messages.addErrorsCrudCouldNotFindCrudTable(GLOBAL, form.id), this::asListHtml);
            });
            saveToken();
            return asEditHtml();
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultLifecycleBindingsInjector.java

        public Model injectLifecycleBindings(Model model, ModelBuilderRequest request, ModelProblemCollector problems) {
            String packagingId = model.getPackaging();
            Packaging packaging = packagingRegistry.lookup(packagingId).orElse(null);
            if (packaging == null) {
                problems.add(
                        Severity.ERROR, Version.BASE, "Unknown packaging: " + packagingId, model.getLocation("packaging"));
                return model;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top