use of org.olat.admin.user.UserTableDataModel in project OpenOLAT by OpenOLAT.
the class UserControllerFactory method createTableControllerFor.
public static TableController createTableControllerFor(TableGuiConfiguration tableConfig, List<Identity> identities, UserRequest ureq, WindowControl wControl, String actionCommand) {
Locale loc = ureq.getLocale();
Translator trans = Util.createPackageTranslator(UserControllerFactory.class, loc);
trans = UserManager.getInstance().getPropertyHandlerTranslator(trans);
TableController tableCtr = new TableController(tableConfig, ureq, wControl, trans);
Roles roles = ureq.getUserSession().getRoles();
boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
UserTableDataModel userDataModel = new UserTableDataModel(identities, loc, isAdministrativeUser);
userDataModel.addColumnDescriptors(tableCtr, actionCommand);
tableCtr.setTableDataModel(userDataModel);
return tableCtr;
}
use of org.olat.admin.user.UserTableDataModel in project openolat by klemens.
the class UserControllerFactory method createTableControllerFor.
public static TableController createTableControllerFor(TableGuiConfiguration tableConfig, List<Identity> identities, UserRequest ureq, WindowControl wControl, String actionCommand) {
Locale loc = ureq.getLocale();
Translator trans = Util.createPackageTranslator(UserControllerFactory.class, loc);
trans = UserManager.getInstance().getPropertyHandlerTranslator(trans);
TableController tableCtr = new TableController(tableConfig, ureq, wControl, trans);
Roles roles = ureq.getUserSession().getRoles();
boolean isAdministrativeUser = (roles.isAuthor() || roles.isGroupManager() || roles.isUserManager() || roles.isOLATAdmin());
UserTableDataModel userDataModel = new UserTableDataModel(identities, loc, isAdministrativeUser);
userDataModel.addColumnDescriptors(tableCtr, actionCommand);
tableCtr.setTableDataModel(userDataModel);
return tableCtr;
}
Aggregations