Portal linkage issue

This commit is contained in:
iadgovuser29 2024-07-05 15:38:07 -04:00
parent f7b5daf95f
commit bd06340448

View File

@ -105,8 +105,12 @@ public class SupplyChainValidation extends ArchivableEntity {
this.certificatesUsed = new ArrayList<>();
this.rimId = "";
for (ArchivableEntity ae : certificatesUsed) {
if (ae instanceof ReferenceManifest) {
this.rimId = ae.getId().toString();
if (ae instanceof ReferenceManifest rm) {
if (rm.isBase()) {
this.rimId = rm.getId().toString();
} else {
this.rimId = rm.getAssociatedRim().toString();
}
break;
} else if (ae instanceof Certificate) {
this.certificatesUsed.add((Certificate) ae);