thinAgg.setAlgoAgg(false);
List<Attribute> attributes = new ArrayList<Attribute>();
for (DimensionRowModel row : dimensionRowModels) {
Level level = row.getSelectedItem();
logger.debug("selected item is " + level.getName());
int insertPoint = attributes.size();
while (level != null) {
Attribute attrib = level.getAttribute();
if (attrib != null) {
logger.debug("adding level " + level.getName() + " to UIAggregate: " + thinAgg);
if (!attributes.contains(attrib)) {
attributes.add(insertPoint, attrib);
}
}
level = level.getParent();
}
}
thinAgg.setAttributes(attributes);
// for now, hard code all measures as selected