use of org.apache.syncope.client.console.wizards.role.RoleWizardBuilder in project syncope by apache.
the class Security method buildTabList.
private List<ITab> buildTabList() {
final List<ITab> tabs = new ArrayList<>();
tabs.add(new AbstractTab(new ResourceModel("roles")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new RoleDirectoryPanel.Builder(getPageReference()) {
private static final long serialVersionUID = -5960765294082359003L;
}.addNewItemPanelBuilder(new RoleWizardBuilder(new RoleTO(), getPageReference()), true).build(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("dynRealms")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new DynRealmDirectoryPanel.Builder(getPageReference()) {
private static final long serialVersionUID = -5960765294082359003L;
}.build(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("applications")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new ApplicationDirectoryPanel.Builder(getPageReference()) {
private static final long serialVersionUID = -5960765294082359003L;
}.build(panelId);
}
});
tabs.add(new AbstractTab(new ResourceModel("securityQuestions")) {
private static final long serialVersionUID = -6815067322125799251L;
@Override
public Panel getPanel(final String panelId) {
return new SecurityQuestionsPanel(panelId, getPageReference());
}
});
return tabs;
}
Aggregations