- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for deleteBefore (0.05 sec)
-
src/main/java/org/codelibs/fess/job/PurgeLogJob.java
final SystemHelper systemHelper = ComponentUtil.getSystemHelper(); final StringBuilder resultBuf = new StringBuilder(); // purge crawling sessions try { crawlingInfoService.deleteBefore(systemHelper.getCurrentTimeAsLong()); } catch (final Exception e) { logger.error("Failed to purge crawling sessions.", e); resultBuf.append(e.getMessage()).append("\n"); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/UserInfoService.java
import jakarta.annotation.Resource; public class UserInfoService { @Resource private UserInfoBhv userInfoBhv; @Resource private SystemHelper systemHelper; public void deleteBefore(final int days) { userInfoBhv.queryDelete(cb -> { cb.query().setUpdatedAt_LessEqual(systemHelper.getCurrentTimeAsLocalDateTime().minusDays(days)); }); }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/JobLogService.java
// setup condition cb.query().addOrderBy_StartTime_Desc(); cb.query().addOrderBy_EndTime_Desc(); // search } public void deleteBefore(final int days) { final long oneday = 24 * 60 * 60 * 1000L; final long targetTime = ComponentUtil.getSystemHelper().getCurrentTimeAsLong() - days * oneday; jobLogBhv.queryDelete(cb -> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 4.2K bytes - Viewed (0)