this.filterDao = filterDao;
}
-
@Override
public Dashboard createDashboard() {
Dashboard dashboard = Dashboard.create()
- .setGlobal(true)
- .setLayout(DashboardLayout.TWO_COLUMNS);
+ .setGlobal(true)
+ .setLayout(DashboardLayout.TWO_COLUMNS);
dashboard.addWidget(WelcomeWidget.ID, 1);
MeasureFilterDto filter = findSystemFilter(MyFavouritesFilter.NAME);
if (filter != null) {
dashboard
- .addWidget(MeasureFilterListWidget.ID, 1)
- .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
- .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "50");
+ .addWidget(MeasureFilterListWidget.ID, 1)
+ .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
+ .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "50");
}
filter = findSystemFilter(ProjectFilter.NAME);
if (filter != null) {
dashboard
- .addWidget(MeasureFilterListWidget.ID, 2)
- .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
- .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "20");
+ .addWidget(MeasureFilterListWidget.ID, 2)
+ .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
+ .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "20");
dashboard
- .addWidget(MeasureFilterTreemapWidget.ID, 2)
- .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
- .setProperty(MeasureFilterTreemapWidget.SIZE_METRIC_PROPERTY, "ncloc")
- .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "violations_density");
+ .addWidget(MeasureFilterTreemapWidget.ID, 2)
+ .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
+ .setProperty(MeasureFilterTreemapWidget.SIZE_METRIC_PROPERTY, "ncloc")
+ .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "violations_density");
}
return dashboard;
@Override
public String getName() {
- return "Projects";
+ return "Home";
}
private MeasureFilterDto findSystemFilter(String name) {
return filterDao.findSystemFilterByName(name);
}
-}
\ No newline at end of file
+}