use of org.apache.syncope.client.console.panels.CamelRoutesDirectoryPanel in project syncope by apache.
the class CamelRoutes method buildTabList.
private List<ITab> buildTabList() {
List<ITab> tabs = new ArrayList<>(3);
tabs.add(new AbstractTab(new Model<>(AnyTypeKind.USER.name())) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
CamelRoutesDirectoryPanel panel = new CamelRoutesDirectoryPanel(panelId, getPageReference(), AnyTypeKind.USER);
panel.setEnabled(restClient.isCamelEnabledFor(AnyTypeKind.USER));
return panel;
}
});
tabs.add(new AbstractTab(new Model<>(AnyTypeKind.GROUP.name())) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
CamelRoutesDirectoryPanel panel = new CamelRoutesDirectoryPanel(panelId, getPageReference(), AnyTypeKind.GROUP);
panel.setEnabled(restClient.isCamelEnabledFor(AnyTypeKind.GROUP));
return panel;
}
});
tabs.add(new AbstractTab(new Model<>(AnyTypeKind.ANY_OBJECT.name())) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
CamelRoutesDirectoryPanel panel = new CamelRoutesDirectoryPanel(panelId, getPageReference(), AnyTypeKind.ANY_OBJECT);
panel.setEnabled(restClient.isCamelEnabledFor(AnyTypeKind.ANY_OBJECT));
return panel;
}
});
return tabs;
}
Aggregations