use of org.eclipse.sw360.datahandler.thrift.components.ClearingInformation in project sw360portal by sw360.
the class DisplayReleaseChanges method renderClearingInformation.
private String renderClearingInformation() {
if (!ensureSomethingTodoAndNoNull(Release._Fields.CLEARING_INFORMATION)) {
return "";
}
StringBuilder display = new StringBuilder();
if (!actual.isSet(Release._Fields.CLEARING_INFORMATION)) {
actual.clearingInformation = new ClearingInformation();
}
for (ClearingInformation._Fields field : ClearingInformation._Fields.values()) {
FieldMetaData fieldMetaData = ClearingInformation.metaDataMap.get(field);
displaySimpleFieldOrSet(display, actual.getClearingInformation(), additions.getClearingInformation(), deletions.getClearingInformation(), field, fieldMetaData, "");
}
return "<h3> Changes in Clearing Information </h3>" + String.format("<table class=\"%s\" id=\"%schanges\" >", tableClasses, idPrefix) + String.format("<thead><tr><th>%s</th><th>%s</th><th>%s</th><th>%s</th></tr></thead><tbody>", FIELD_NAME, CURRENT_VAL, DELETED_VAL, SUGGESTED_VAL) + display.toString() + "</tbody></table>";
}
Aggregations