columns.add(new PropertyColumn(new ResourceModel(name, name), name, name));
}
}
for (String name : preferences.getList(getRequest(), Constants.PREF_USERS_ATTRIBUTES_VIEW)) {
columns.add(new UserAttrColumn(name, UserAttrColumn.SchemaType.schema));
}
for (String name : preferences.getList(getRequest(), Constants.PREF_USERS_DERIVED_ATTRIBUTES_VIEW)) {
columns.add(new UserAttrColumn(name, UserAttrColumn.SchemaType.derivedSchema));
}
for (String name : preferences.getList(getRequest(), Constants.PREF_USERS_VIRTUAL_ATTRIBUTES_VIEW)) {
columns.add(new UserAttrColumn(name, UserAttrColumn.SchemaType.virtualSchema));
}
// Add defaults in case of empty selections
if (columns.isEmpty()) {
columns.add(new PropertyColumn(new ResourceModel("id", "id"), "id", "id"));