use of org.olat.core.gui.control.generic.portal.PortletEntry in project openolat by klemens.
the class GroupsPortletRunController method convertShortBusinessGroupToPortletEntryList.
private List<PortletEntry<BusinessGroupEntry>> convertShortBusinessGroupToPortletEntryList(List<BusinessGroup> groups, boolean withDescription) {
List<PortletEntry<BusinessGroupEntry>> convertedList = new ArrayList<PortletEntry<BusinessGroupEntry>>();
for (BusinessGroup group : groups) {
GroupPortletEntry entry = new GroupPortletEntry(group);
if (withDescription) {
entry.getValue().setDescription(group.getDescription());
}
convertedList.add(entry);
}
return convertedList;
}
Aggregations