Uses of Class
io.meeds.commons.digest.entity.DigestUserEntity
Packages that use DigestUserEntity
-
Uses of DigestUserEntity in io.meeds.commons.digest.dao
Methods in io.meeds.commons.digest.dao that return DigestUserEntityMethods in io.meeds.commons.digest.dao that return types with arguments of type DigestUserEntityModifier and TypeMethodDescriptionDigestUserDAO.findByDailyTrueAndDailyLastSentBeforeAndIdGreaterThanOrderByIdAsc(Instant cutoff, long afterId, org.springframework.data.domain.Limit limit) The daily candidates of the sender job: daily on, watermark old enough, read by keyset (ids after the last one seen, ascending) so that a candidate claimed by another node during the scan shifts nothingDigestUserDAO.findByUserIdIn(Collection<String> userIds) The enrolled users among the given ones: a row exists only for a user having a frequency enabled, so this one indexed read tells who is worth reading the settings ofDigestUserDAO.findByWeeklyTrueAndWeeklyLastSentBeforeAndIdGreaterThanOrderByIdAsc(Instant cutoff, long afterId, org.springframework.data.domain.Limit limit) The weekly candidates of the sender job, same keyset read as the daily one -
Uses of DigestUserEntity in io.meeds.commons.digest.service
Methods in io.meeds.commons.digest.service that return DigestUserEntityMethods in io.meeds.commons.digest.service that return types with arguments of type DigestUserEntityModifier and TypeMethodDescriptionDigestScheduleStorage.findCandidates(io.meeds.commons.digest.model.DigestFrequency frequency, Instant cutoff, long afterId, org.springframework.data.domain.Limit limit) One batch of the candidates of a frequency: the frequency is on and the watermark is older than the cutoff, ids after the last one seen, ascending.Methods in io.meeds.commons.digest.service with parameters of type DigestUserEntityModifier and TypeMethodDescriptionorg.exoplatform.commons.api.notification.model.MessageInfoDigestMailBuilder.build(DigestUserEntity user, io.meeds.commons.digest.model.DigestFrequency frequency, io.meeds.commons.digest.model.DigestUserSettings settings, List<DigestItemEntity> items, Instant from, Instant until) booleanDigestDueCalculator.isDue(DigestUserEntity user, io.meeds.commons.digest.model.DigestFrequency frequency, Instant now) booleanDigestOccurrenceProcessor.serve(DigestUserEntity user, io.meeds.commons.digest.model.DigestFrequency frequency, Instant now) Serves one occurrence.