addDataTypes(portalDataTypes, exportPortalDataTypes, Operations.EXPORT);
final Iterable<IPortalDataType> deletePortalDataTypes = dataHandlerService.getDeletePortalDataTypes();
addDataTypes(portalDataTypes, deletePortalDataTypes, Operations.DELETE);
final TableFormatter tableFormatter = new TableFormatter(
new TableEntry<String>("Data Type", "-", "s"),
new TableEntry<String>("Export", "-", "s"),
new TableEntry<String>("Delete", "-", "s"));
for (final Map.Entry<String, Set<Operations>> portalDataTypeEntry : portalDataTypes.entrySet()) {
final String typeId = portalDataTypeEntry.getKey();
final Set<Operations> ops = portalDataTypeEntry.getValue();
tableFormatter.addRow(
new TableEntry<String>(typeId, "-", "s"),
new TableEntry<Boolean>(ops.contains(Operations.EXPORT), "-", "b"),
new TableEntry<Boolean>(ops.contains(Operations.DELETE), "-", "b"));
}
tableFormatter.format(f);
}