Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 168 for ifPresent (0.07 sec)

  1. src/main/java/org/codelibs/fess/app/web/api/admin/accesstoken/ApiAdminAccesstokenAction.java

        }
    
        // DELETE /api/admin/accesstoken/setting/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            accessTokenService.getAccessToken(id).ifPresent(entity -> {
                try {
                    accessTokenService.delete(entity);
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java

                if (doc.get(fessConfig.getIndexFieldConfigId()) instanceof final String configId) {
                    crawlingConfigHelper.getPipeline(configId).ifPresent(s -> builder.setPipeline(s));
                }
            });
            return asJson(new ApiBulkResponse().items(Arrays.stream(response.getItems()).map(item -> {
                final Map<String, Object> itemMap = new HashMap<>();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 25 01:48:41 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/webconfig/ApiAdminWebconfigAction.java

        }
    
        // DELETE /api/admin/webconfig/setting/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            webConfigService.getWebConfig(id).ifPresent(entity -> {
                try {
                    webConfigService.delete(entity);
                    saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
                } catch (final Exception e) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Optional.java

     * relevant methods below.
     *
     * <ul>
     *   <li>This class is serializable; {@code java.util.Optional} is not.
     *   <li>{@code java.util.Optional} has the additional methods {@code ifPresent}, {@code filter},
     *       {@code flatMap}, and {@code orElseThrow}.
     *   <li>{@code java.util} offers the primitive-specialized versions {@code OptionalInt}, {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/base/login/FessLoginAssist.java

        protected void checkPermission(final LoginHandlingResource resource) throws LoginRequiredException {
            if (FessAdminAction.class.isAssignableFrom(resource.getActionClass())) {
                getSavedUserBean().ifPresent(user -> {
                    if (user.hasRoles(fessConfig.getAuthenticationAdminRolesAsArray())) {
                        return;
                    }
                    final Method executeMethod = resource.getExecuteMethod();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/DictionaryManager.java

                }
            }
            return OptionalEntity.empty();
        }
    
        public void store(final DictionaryFile<? extends DictionaryItem> dictFile, final File file) {
            getDictionaryFile(dictFile.getId()).ifPresent(currentFile -> {
                if (currentFile.getTimestamp().getTime() > dictFile.getTimestamp().getTime()) {
                    throw new DictionaryException(dictFile.getPath() + " was updated.");
                }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. 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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. 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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. 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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. 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: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top