package no.dusken.barweb.plugin.statisticsplugin.service; import no.dusken.barweb.plugin.statisticsplugin.model.StatisticsElement; import no.dusken.common.service.GenericService; import java.util.Calendar; import java.util.List; /** * @author Marvin B. Lillehaug <lillehau@underdusken.no> */ public interface StatisticsService extends GenericService<StatisticsElement> { /** * @param id of the tracked element, like a person. * @param name of the elements. e.g. beer. * @param from - earliest time for element. * @param to - last time for element. * @return list with the relevant elements. */ public List<StatisticsElement> getByTrackedObjectIdAndNameAndTimeCreatedBetween(Long id, String name, Calendar from, Calendar to); /** * @param id of the tracked element, like a person. * @param name of the elements. e.g. beer. * @return list with the relevant elements. */ public List<StatisticsElement> getByTrackedObjectIdAndName(Long id, String name); }