use of org.apache.syncope.client.console.panels.DashboardControlPanel in project syncope by apache.
the class Dashboard method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(new ResourceModel("overview")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardOverviewPanel(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("accessTokens")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardAccessTokensPanel(panelId, getPageReference());
}
});
tabs.add(new AbstractTab(new ResourceModel("control")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardControlPanel(panelId, getPageReference());
}
});
ClassPathScanImplementationLookup classPathScanImplementationLookup = (ClassPathScanImplementationLookup) SyncopeConsoleApplication.get().getServletContext().getAttribute(ConsoleInitializer.CLASSPATH_LOOKUP);
final List<Class<? extends BaseExtWidget>> extWidgetClasses = classPathScanImplementationLookup.getExtWidgetClasses();
if (!extWidgetClasses.isEmpty()) {
tabs.add(new AbstractTab(new ResourceModel("extensions")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DashboardExtensionsPanel(panelId, extWidgetClasses, getPageReference());
}
});
}
return tabs;
}
Aggregations