Search in sources :

Example 1 with AccountPolicyDirectoryPanel

use of org.apache.syncope.client.console.policies.AccountPolicyDirectoryPanel in project syncope by apache.

the class Policies method buildTabList.

private List<ITab> buildTabList() {
    final List<ITab> tabs = new ArrayList<>();
    tabs.add(new AbstractTab(new ResourceModel("policy.account")) {

        private static final long serialVersionUID = -6815067322125799251L;

        @Override
        public Panel getPanel(final String panelId) {
            return new AccountPolicyDirectoryPanel(panelId, getPageReference());
        }
    });
    tabs.add(new AbstractTab(new ResourceModel("policy.password")) {

        private static final long serialVersionUID = -6815067322125799251L;

        @Override
        public Panel getPanel(final String panelId) {
            return new PasswordPolicyDirectoryPanel(panelId, getPageReference());
        }
    });
    tabs.add(new AbstractTab(new ResourceModel("policy.pull")) {

        private static final long serialVersionUID = -6815067322125799251L;

        @Override
        public Panel getPanel(final String panelId) {
            return new PullPolicyDirectoryPanel(panelId, getPageReference());
        }
    });
    return tabs;
}
Also used : AccountPolicyDirectoryPanel(org.apache.syncope.client.console.policies.AccountPolicyDirectoryPanel) PasswordPolicyDirectoryPanel(org.apache.syncope.client.console.policies.PasswordPolicyDirectoryPanel) AjaxBootstrapTabbedPanel(de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel) Panel(org.apache.wicket.markup.html.panel.Panel) PullPolicyDirectoryPanel(org.apache.syncope.client.console.policies.PullPolicyDirectoryPanel) AccountPolicyDirectoryPanel(org.apache.syncope.client.console.policies.AccountPolicyDirectoryPanel) ArrayList(java.util.ArrayList) PasswordPolicyDirectoryPanel(org.apache.syncope.client.console.policies.PasswordPolicyDirectoryPanel) AbstractTab(org.apache.wicket.extensions.markup.html.tabs.AbstractTab) ResourceModel(org.apache.wicket.model.ResourceModel) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab) PullPolicyDirectoryPanel(org.apache.syncope.client.console.policies.PullPolicyDirectoryPanel)

Aggregations

AjaxBootstrapTabbedPanel (de.agilecoders.wicket.core.markup.html.bootstrap.tabs.AjaxBootstrapTabbedPanel)1 ArrayList (java.util.ArrayList)1 AccountPolicyDirectoryPanel (org.apache.syncope.client.console.policies.AccountPolicyDirectoryPanel)1 PasswordPolicyDirectoryPanel (org.apache.syncope.client.console.policies.PasswordPolicyDirectoryPanel)1 PullPolicyDirectoryPanel (org.apache.syncope.client.console.policies.PullPolicyDirectoryPanel)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