Added Resource.getCaptionFor()

FEA: ItEr68OTS03XestionRecursosEstratexicosItEr67OTS03
This commit is contained in:
Diego Pino Garcia 2011-01-19 17:33:08 +01:00
parent bc4c59e006
commit e50b163b41

View file

@ -113,6 +113,14 @@ public abstract class Resource extends IntegrationEntity {
return resources;
}
public static String getCaptionFor(List<Resource> resources) {
List<String> values = new ArrayList<String>();
for (Resource each: resources) {
values.add(each.getShortDescription());
}
return StringUtils.join(values, ", ");
}
private ResourceCalendar calendar;
private Set<CriterionSatisfaction> criterionSatisfactions = new HashSet<CriterionSatisfaction>();