Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getCurrentTimeAsLocalDateTime (0.52 sec)

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

        @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)
  2. src/main/java/org/codelibs/fess/app/web/go/GoAction.java

                    clickLog.setUrlId((String) doc.get(fessConfig.getIndexFieldId()));
                    clickLog.setUrl(url);
                    clickLog.setRequestedAt(systemHelper.getCurrentTimeAsLocalDateTime());
                    clickLog.setQueryRequestedAt(DfTypeUtil.toLocalDateTime(Long.parseLong(form.rt)));
                    clickLog.setUserSessionId(userSessionId);
                    clickLog.setDocId(form.docId);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            assertEquals("guest", systemHelper.getUsername());
        }
    
        public void test_getCurrentTimeAsLocalDateTime() {
            final long current =
                    1000 * systemHelper.getCurrentTimeAsLocalDateTime().atZone(ZoneId.systemDefault()).toInstant().getEpochSecond();
            final long now = System.currentTimeMillis();
            assertTrue(now + ">=" + current + " : " + (now - current), now >= current);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

        protected UserInfo storeUserInfo(final String userCode) {
            final UserInfoBhv userInfoBhv = ComponentUtil.getComponent(UserInfoBhv.class);
    
            final LocalDateTime now = ComponentUtil.getSystemHelper().getCurrentTimeAsLocalDateTime();
            final UserInfo userInfo = userInfoBhv.selectByPK(userCode).map(e -> {
                e.setUpdatedAt(now);
                return e;
            }).orElseGet(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 02:07:37 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/service/SearchLogService.java

        @Resource
        protected FessConfig fessConfig;
    
        public void deleteBefore(final int days) {
            searchLogBhv.queryDelete(cb -> {
                cb.query().setRequestedAt_LessEqual(systemHelper.getCurrentTimeAsLocalDateTime().minusDays(days));
            });
        }
    
        public List<?> getSearchLogList(final SearchLogPager pager) {
            final EsPagingResultBean<?> list;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/SystemHelper.java

            return new Date(getCurrentTimeAsLong());
        }
    
        public long getCurrentTimeAsLong() {
            return System.currentTimeMillis();
        }
    
        public LocalDateTime getCurrentTimeAsLocalDateTime() {
            final Instant instant = Instant.ofEpochMilli(getCurrentTimeAsLong());
            return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
        }
    
        public String getLogFilePath() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 17 12:10:08 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                                favoriteLog.setDocId(docId);
                                favoriteLog.setQueryId(queryId);
                                favoriteLog.setCreatedAt(systemHelper.getCurrentTimeAsLocalDateTime());
                            })) {
                                throw new WebApiException(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Failed to add url: " + favoriteUrl);
                            }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top