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:
parent
205b2a45a2
commit
50cf118e58
|
@ -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());
|
||||
|
@ -662,10 +671,10 @@ public class ManageProductWidget extends Composite{
|
|||
if(sR.isSuggestedMerge()){
|
||||
bean.setMergesInvolved(true);
|
||||
report += "\n\t - merge the current record with record '" + sR.getTitle() + " ;";
|
||||
report += "\n\t\t- GRSF Name '" + sR.getTitle() + "' ;";
|
||||
report += "\n\t\t- Short Name '" + sR.getShortName() + "' ;";
|
||||
report += "\n\t\t- URL '" + sR.getUrl() + "' ;";
|
||||
report += "\n\t\t- Semantic Identifier '" + sR.getSemanticIdentifier() + "' ;";
|
||||
report += "\n\t \t- GRSF Name '" + sR.getTitle() + "' ;";
|
||||
report += "\n\t \t- Short Name '" + sR.getShortName() + "' ;";
|
||||
report += "\n\t \t- URL '" + sR.getUrl() + "' ;";
|
||||
report += "\n\t \t- Semantic Identifier '" + sR.getSemanticIdentifier() + "' ;";
|
||||
}
|
||||
}
|
||||
if(bean.isMergesInvolved()){
|
||||
|
|
Loading…
Reference in New Issue