String valueUserRole = role.getName();
userViewBean.getRoles().put(keyUserRole, valueUserRole);
final Set<UserPermission> permissions = role.getPermissions();
for (Iterator<UserPermission> iteratorPermission = permissions.iterator(); iteratorPermission.hasNext();) {
UserPermission permission = (UserPermission) iteratorPermission.next();
String keyUserPermission = permission.getCode();
String valueUserPermission = permission.getName();
userViewBean.getPermissions().put(keyUserPermission, valueUserPermission);
}
}
}