added Involved Database Sources to the report

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/grsf-manage-widget@164621 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2018-02-28 15:15:58 +00:00
parent 205b2a45a2
commit 50cf118e58
1 changed files with 14 additions and 5 deletions

View File

@ -604,6 +604,15 @@ public class ManageProductWidget extends Composite{
report += "\n\t- URL '" + bean.getUrl() + "' ;";
report += "\n\t- Semantic Identifier '" + bean.getSemanticIdentifier() + "' ;";
String involvedSourceRecords = "\n\t- Database Sources involved: ";
List<SourceRecord> sources = bean.getSources();
for (SourceRecord sourceRecord : sources) {
involvedSourceRecords += sourceRecord.getName() + " ";
}
involvedSourceRecords += ";";
report += involvedSourceRecords;
if(!bean.getShortName().equals(bean.getShortNameUpdated())){
report += "\n- The GRSF Short Name has been changed to '" + bean.getShortNameUpdated() + "' from '" + bean.getShortName() + "';";
hashtags.add(HashTagsOnUpdate.SHORTNAME_UPDATED.getString());