/** * Counts the number of intrant in the database, that match the criteria * * @return the count */ @Transactional(readOnly = true) public Long countIntrant(ImogJunction criterions) { ImogActor actor = HttpSessionUtil.getCurrentUser(); ImogJunction junction = createFilterJuntion(actor); if (criterions != null) junction.add(criterions); return dao.count(junction); }