@Override public void update(DataSet dataSet) { PeriodType periodType = periodService.reloadPeriodType(dataSet.getPeriodType()); dataSet.setPeriodType(periodType); super.update(dataSet); }
@Override public void deleteDashboard(Dashboard dashboard) { dashboardStore.delete(dashboard); for (DashboardItem dashboardItem : dashboard.getItems()) { dashboardItemStore.delete(dashboardItem); } }
@Override public Dashboard getDashboard(String uid) { return dashboardStore.getByUid(uid); }
@Override public Dashboard getDashboard(int id) { return dashboardStore.get(id); }
@Override public void updateDashboard(Dashboard dashboard) { dashboardStore.update(dashboard); }
@Override public int saveDashboard(Dashboard dashboard) { return dashboardStore.save(dashboard); }