no similar records and no connections constants check performed
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/grsf-manage-widget@162601 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b55aff673d
commit
bdf27ff071
|
@ -160,6 +160,9 @@ public class GRSFNotificationService extends RemoteServiceServlet implements GRS
|
|||
List<SimilarGRSFRecord> similarRecords = new ArrayList<SimilarGRSFRecord>(0);
|
||||
if(similarGrsfRecordsAsStrings != null){
|
||||
for (String similarGRSFRecord : similarGrsfRecordsAsStrings) {
|
||||
if(similarGRSFRecord.equals(Constants.NO_SIMILAR_GRSF_RECORDS)) // stop here if there is a single element with this information
|
||||
break;
|
||||
|
||||
similarRecords.add(Utils.similarGRSFRecordFromJson(similarGRSFRecord));
|
||||
}
|
||||
}
|
||||
|
@ -172,6 +175,8 @@ public class GRSFNotificationService extends RemoteServiceServlet implements GRS
|
|||
List<ConnectedBean> connectedBeans = new ArrayList<ConnectedBean>(0);
|
||||
if(connectedBeansAsStrings != null){
|
||||
for (String connectedBean : connectedBeansAsStrings) {
|
||||
if(connectedBean.equals(Constants.NO_CONNECTED_RECORDS)) // stop here if there is a single element with this information
|
||||
break;
|
||||
connectedBeans.add(Utils.connectedBeanRecordFromJson(connectedBean, uuidKB, grsfDomain, catalogue));
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +196,6 @@ public class GRSFNotificationService extends RemoteServiceServlet implements GRS
|
|||
grsfDomain, grsfName, shortName, traceabilityFlag, Status.fromString(status), null,
|
||||
null, null, sources, similarRecords, connectedBeans);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue