use of org.olat.admin.user.UserSearchListProvider in project OpenOLAT by OpenOLAT.
the class EMailCalloutCtrl method initForm.
@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
Roles roles = ureq.getUserSession().getRoles();
boolean autoCompleteAllowed = securityModule.isUserAllowedAutoComplete(roles);
boolean isAdministrativeUser = securityModule.isUserAllowedAdminProps(roles);
if (autoCompleteAllowed) {
ListProvider provider = new UserSearchListProvider();
autocompleterC = new FlexiAutoCompleterController(ureq, getWindowControl(), provider, null, isAdministrativeUser, allowExternalAddress, 60, 3, null, mainForm);
autocompleterC.setFormElement(false);
listenTo(autocompleterC);
FormItem item = autocompleterC.getInitialFormItem();
formLayout.add(item);
} else if (allowExternalAddress) {
emailEl = uifactory.addTextElement("email" + CodeHelper.getRAMUniqueID(), "email", null, 256, "", formLayout);
}
}
use of org.olat.admin.user.UserSearchListProvider in project openolat by klemens.
the class EMailCalloutCtrl method initForm.
@Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
Roles roles = ureq.getUserSession().getRoles();
boolean autoCompleteAllowed = securityModule.isUserAllowedAutoComplete(roles);
boolean isAdministrativeUser = securityModule.isUserAllowedAdminProps(roles);
if (autoCompleteAllowed) {
ListProvider provider = new UserSearchListProvider();
autocompleterC = new FlexiAutoCompleterController(ureq, getWindowControl(), provider, null, isAdministrativeUser, allowExternalAddress, 60, 3, null, mainForm);
autocompleterC.setFormElement(false);
listenTo(autocompleterC);
FormItem item = autocompleterC.getInitialFormItem();
formLayout.add(item);
} else if (allowExternalAddress) {
emailEl = uifactory.addTextElement("email" + CodeHelper.getRAMUniqueID(), "email", null, 256, "", formLayout);
}
}
Aggregations