Search in sources :

Example 1 with RoleWizardBuilder

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;
}
Also used : RoleWizardBuilder(org.apache.syncope.client.console.wizards.role.RoleWizardBuilder) SecurityQuestionsPanel(org.apache.syncope.client.console.panels.SecurityQuestionsPanel) RoleWizardBuilder(org.apache.syncope.client.console.wizards.role.RoleWizardBuilder) BookmarkablePageLinkBuilder(org.apache.syncope.client.console.BookmarkablePageLinkBuilder) ArrayList(java.util.ArrayList) RoleTO(org.apache.syncope.common.lib.to.RoleTO) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab) SecurityQuestionsPanel(org.apache.syncope.client.console.panels.SecurityQuestionsPanel) DynRealmDirectoryPanel(org.apache.syncope.client.console.panels.DynRealmDirectoryPanel) AjaxBootstrapTabbedPanel(de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel) Panel(org.apache.wicket.markup.html.panel.Panel) RoleDirectoryPanel(org.apache.syncope.client.console.panels.RoleDirectoryPanel) ApplicationDirectoryPanel(org.apache.syncope.client.console.panels.ApplicationDirectoryPanel) RoleDirectoryPanel(org.apache.syncope.client.console.panels.RoleDirectoryPanel) AbstractTab(org.apache.wicket.extensions.markup.html.tabs.AbstractTab) ResourceModel(org.apache.wicket.model.ResourceModel)

Aggregations

AjaxBootstrapTabbedPanel (de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel)1 ArrayList (java.util.ArrayList)1 BookmarkablePageLinkBuilder (org.apache.syncope.client.console.BookmarkablePageLinkBuilder)1 ApplicationDirectoryPanel (org.apache.syncope.client.console.panels.ApplicationDirectoryPanel)1 DynRealmDirectoryPanel (org.apache.syncope.client.console.panels.DynRealmDirectoryPanel)1 RoleDirectoryPanel (org.apache.syncope.client.console.panels.RoleDirectoryPanel)1 SecurityQuestionsPanel (org.apache.syncope.client.console.panels.SecurityQuestionsPanel)1 RoleWizardBuilder (org.apache.syncope.client.console.wizards.role.RoleWizardBuilder)1 RoleTO (org.apache.syncope.common.lib.to.RoleTO)1 AbstractTab (org.apache.wicket.extensions.markup.html.tabs.AbstractTab)1 ITab (org.apache.wicket.extensions.markup.html.tabs.ITab)1 Panel (org.apache.wicket.markup.html.panel.Panel)1 ResourceModel (org.apache.wicket.model.ResourceModel)1