Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 168 for ifPresent (0.09 sec)

  1. src/main/java/org/codelibs/fess/helper/VirtualHostHelper.java

                final String value = processVirtualHost(s -> s, StringUtil.EMPTY);
                LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(FessConfig.VIRTUAL_HOST_VALUE, value));
                return value;
            });
        }
    
        protected <T> T processVirtualHost(final Function<String, T> func, final T defaultValue) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/dict/protwords/ApiAdminDictProtwordsAction.java

        // DELETE /api/admin/dict/protwords/setting/{dictId}/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String dictId, final long id) {
            protwordsService.getProtwordsItem(dictId, id).ifPresent(entity -> {
                protwordsService.delete(dictId, entity);
                saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
            }).orElse(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/joblog/ApiAdminJoblogAction.java

            })).status(Status.OK).result());
        }
    
        // DELETE /api/admin/joblog/log/{id}
        @Execute
        public JsonResponse<ApiResult> delete$log(final String id) {
            jobLogService.getJobLog(id).ifPresent(entity -> {
                try {
                    jobLogService.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
    - 4.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/QueryHelper.java

                if (user.hasRoles(ComponentUtil.getFessConfig().getAuthenticationAdminRolesAsArray())) {
                    return Constants.SEARCH_PREFERENCE_LOCAL;
                }
                return user.getUserId();
            }).ifPresent(p -> searchRequestBuilder.setPreference(p)).orElse(() -> LaRequestUtil.getOptionalRequest().map(r -> {
                final HttpSession session = r.getSession(false);
                if (session != null) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/dict/kuromoji/ApiAdminDictKuromojiAction.java

        // DELETE /api/admin/dict/kuromoji/setting/{dictId}/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String dictId, final long id) {
            kuromojiService.getKuromojiItem(dictId, id).ifPresent(entity -> {
                kuromojiService.delete(dictId, entity);
                saveInfo(messages -> messages.addSuccessCrudDeleteCrudTable(GLOBAL));
            }).orElse(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                logger.warn("Failed to process gsa.xml file: {}", fileName, e);
            } finally {
                deleteTempFile(tempFile);
            }
            configParser.getWebConfig().ifPresent(c -> webConfigBhv.insert(c));
            configParser.getFileConfig().ifPresent(c -> fileConfigBhv.insert(c));
            labelTypeBhv.batchInsert(Arrays.stream(configParser.getLabelTypes()).collect(Collectors.toList()));
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

                final RequestManager requestManager = ComponentUtil.getRequestManager();
                try {
                    requestManager.findUserBean(FessUserBean.class)
                            .ifPresent(fessUserBean -> stream(fessUserBean.getPermissions()).of(stream -> stream.forEach(roleSet::add)))
                            .orElse(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Jul 25 01:48:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/reqheader/ApiAdminReqheaderAction.java

        }
    
        // DELETE /api/admin/reqheader/setting/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            reqHeaderService.getRequestHeader(id).ifPresent(entity -> {
                try {
                    reqHeaderService.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.8K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/webauth/ApiAdminWebauthAction.java

        }
    
        // DELETE /api/admin/webauth/setting/{id}
        @Execute
        public JsonResponse<ApiResult> delete$setting(final String id) {
            webAuthService.getWebAuthentication(id).ifPresent(entity -> {
                try {
                    webAuthService.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.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

                return true;
            }, (queryRequestBuilder, execTime, searchResponse) -> {
                final List<Map<String, String>> sessionIdList = new ArrayList<>();
                searchResponse.ifPresent(response -> {
                    final Terms terms = response.getAggregations().get(fessConfig.getIndexFieldSegment());
                    for (final Bucket bucket : terms.getBuckets()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top