Search in sources :

Example 16 with UserSearchController

use of org.olat.admin.user.UserSearchController in project OpenOLAT by OpenOLAT.

the class GroupController method doAddUsers.

private void doAddUsers(UserRequest ureq) {
    removeAsListenerAndDispose(usc);
    usc = new UserSearchController(ureq, getWindowControl(), true, true, false);
    listenTo(usc);
    Component usersearchview = usc.getInitialComponent();
    removeAsListenerAndDispose(cmc);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), usersearchview, true, translate("add.searchuser"));
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) UserSearchController(org.olat.admin.user.UserSearchController) Component(org.olat.core.gui.components.Component)

Example 17 with UserSearchController

use of org.olat.admin.user.UserSearchController in project OpenOLAT by OpenOLAT.

the class AdvancedPropertySearchForm method formInnerEvent.

@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == userChooser) {
        usc = new UserSearchController(ureq, getWindowControl(), false);
        listenTo(usc);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), usc.getInitialComponent());
        listenTo(cmc);
        cmc.activate();
    } else if (source == searchButton) {
        source.getRootForm().submit(ureq);
    }
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) UserSearchController(org.olat.admin.user.UserSearchController)

Example 18 with UserSearchController

use of org.olat.admin.user.UserSearchController in project OpenOLAT by OpenOLAT.

the class GroupController method doAddUsers.

private void doAddUsers(UserRequest ureq) {
    removeAsListenerAndDispose(usc);
    usc = new UserSearchController(ureq, getWindowControl(), true, true, true);
    listenTo(usc);
    Component usersearchview = usc.getInitialComponent();
    removeAsListenerAndDispose(cmc);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), usersearchview, true, translate("add.searchuser"));
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) UserSearchController(org.olat.admin.user.UserSearchController) Component(org.olat.core.gui.components.Component)

Example 19 with UserSearchController

use of org.olat.admin.user.UserSearchController in project openolat by klemens.

the class GroupController method doAddUsers.

private void doAddUsers(UserRequest ureq) {
    removeAsListenerAndDispose(usc);
    usc = new UserSearchController(ureq, getWindowControl(), true, true, false);
    listenTo(usc);
    Component usersearchview = usc.getInitialComponent();
    removeAsListenerAndDispose(cmc);
    cmc = new CloseableModalController(getWindowControl(), translate("close"), usersearchview, true, translate("add.searchuser"));
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) UserSearchController(org.olat.admin.user.UserSearchController) Component(org.olat.core.gui.components.Component)

Example 20 with UserSearchController

use of org.olat.admin.user.UserSearchController in project openolat by klemens.

the class AdvancedPropertySearchForm method formInnerEvent.

@Override
protected void formInnerEvent(UserRequest ureq, FormItem source, FormEvent event) {
    if (source == userChooser) {
        usc = new UserSearchController(ureq, getWindowControl(), false);
        listenTo(usc);
        cmc = new CloseableModalController(getWindowControl(), translate("close"), usc.getInitialComponent());
        listenTo(cmc);
        cmc.activate();
    } else if (source == searchButton) {
        source.getRootForm().submit(ureq);
    }
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) UserSearchController(org.olat.admin.user.UserSearchController)

Aggregations

UserSearchController (org.olat.admin.user.UserSearchController)24 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)16 Component (org.olat.core.gui.components.Component)4 CloseableCalloutWindowController (org.olat.core.gui.control.generic.closablewrapper.CloseableCalloutWindowController)4 ArrayList (java.util.ArrayList)2 List (java.util.List)2 NamingException (javax.naming.NamingException)2 LdapContext (javax.naming.ldap.LdapContext)2 Cookie (javax.servlet.http.Cookie)2 GroupRoles (org.olat.basesecurity.GroupRoles)2 UserRequest (org.olat.core.gui.UserRequest)2 OncePanel (org.olat.core.gui.components.panel.OncePanel)2 TextComponent (org.olat.core.gui.components.text.TextComponent)2 WindowControl (org.olat.core.gui.control.WindowControl)2 FloatingResizableDialogController (org.olat.core.gui.control.floatingresizabledialog.FloatingResizableDialogController)2 Step (org.olat.core.gui.control.generic.wizard.Step)2 StepRunnerCallback (org.olat.core.gui.control.generic.wizard.StepRunnerCallback)2 StepsMainRunController (org.olat.core.gui.control.generic.wizard.StepsMainRunController)2 StepsRunContext (org.olat.core.gui.control.generic.wizard.StepsRunContext)2 Identity (org.olat.core.id.Identity)2