Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for deleteBefore (0.07 sec)

  1. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

                });
                csvWriter.flush();
            } catch (final IOException e) {
                logger.warn("Failed to write a crawling session info.", e);
            }
        }
    
        public void deleteBefore(final long date) {
            crawlingInfoBhv.selectBulk(cb -> cb.query().setExpiredTime_LessThan(date), list -> {
                final List<String> idList = list.stream().map(CrawlingInfo::getId).collect(Collectors.toList());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

        @Resource
        private UserInfoBhv userInfoBhv;
    
        @Resource
        private SystemHelper systemHelper;
    
        @Resource
        protected FessConfig fessConfig;
    
        public void deleteBefore(final int days) {
            searchLogBhv.queryDelete(cb -> {
                cb.query().setRequestedAt_LessEqual(systemHelper.getCurrentTimeAsLocalDateTime().minusDays(days));
            });
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.4K bytes
    - Viewed (0)
Back to top