String.format("(%s) %s - %s", eval.getEvaluationType(), eval.getName(),
((WrittenTest) eval).getDescription());
} else {
desc = String.format("(%s) %s", eval.getEvaluationType(), eval.getName());
}
beans.add(new SpaceOccupationEventBean(space, durationInterval, desc, occupationType));
}
}
} else {
final String desc = getPresentationString(occupation);
for (Interval interval : map.get(occupation)) {
beans.add(new SpaceOccupationEventBean(space, interval, desc, occupationType));
}
}
}
}
return beans;