@Override
  public void update(DataSet dataSet) {
    PeriodType periodType = periodService.reloadPeriodType(dataSet.getPeriodType());

    dataSet.setPeriodType(periodType);

    super.update(dataSet);
  }
示例#2
0
  @Override
  public void deleteDashboard(Dashboard dashboard) {
    dashboardStore.delete(dashboard);

    for (DashboardItem dashboardItem : dashboard.getItems()) {
      dashboardItemStore.delete(dashboardItem);
    }
  }
示例#3
0
 @Override
 public Dashboard getDashboard(String uid) {
   return dashboardStore.getByUid(uid);
 }
示例#4
0
 @Override
 public Dashboard getDashboard(int id) {
   return dashboardStore.get(id);
 }
示例#5
0
 @Override
 public void updateDashboard(Dashboard dashboard) {
   dashboardStore.update(dashboard);
 }
示例#6
0
 @Override
 public int saveDashboard(Dashboard dashboard) {
   return dashboardStore.save(dashboard);
 }