All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.jhipster.lite.statistic.application.StatisticsApplicationService Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
package tech.jhipster.lite.statistic.application;

import org.springframework.stereotype.Service;
import tech.jhipster.lite.statistic.domain.AppliedModule;
import tech.jhipster.lite.statistic.domain.Statistics;
import tech.jhipster.lite.statistic.domain.StatisticsRepository;
import tech.jhipster.lite.statistic.domain.criteria.StatisticsCriteria;

@Service
public class StatisticsApplicationService {

  private final StatisticsRepository statistics;

  public StatisticsApplicationService(StatisticsRepository statistics) {
    this.statistics = statistics;
  }

  public void moduleApplied(AppliedModule moduleApplied) {
    statistics.save(moduleApplied);
  }

  public Statistics get(StatisticsCriteria criteria) {
    return statistics.get(criteria);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy