46 for (Map.Entry<String, List<String>> attr :
user.getAttributes().entrySet()) {
47 List<String> attrValue = attr.getValue();
48 if (attrValue.size() > 0) {
49 attributes.put(attr.getKey(), attrValue.get(0));
52 if (attrValue.size() > 1) {
53 logger.warnf(
"There are more values for attribute '%s' of user '%s' . Will display just first value", attr.getKey(),
user.getUsername());
59 if (key.startsWith(Constants.USER_ATTRIBUTES_PREFIX)) {
60 String attribute = key.substring(Constants.USER_ATTRIBUTES_PREFIX.length());
final MultivaluedMap< String, String > profileFormData
Definition: AccountBean.java:37
final Map< String, String > attributes
Definition: AccountBean.java:40
static final Logger logger
Definition: AccountBean.java:34
final UserModel user
Definition: AccountBean.java:36