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();
}
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);
}
}
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();
}
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();
}
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);
}
}
Aggregations