Revision 7278
Added by ben leinfelder over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
547 | 547 |
SystemMetadata resourceMapObsoletesSystemMetadata = HazelcastService.getInstance().getSystemMetadataMap().get(resourceMapObsoletes); |
548 | 548 |
if (resourceMapObsoletesSystemMetadata != null) { |
549 | 549 |
resourceMapObsoletesSystemMetadata.setObsoletedBy(resourceMapId); |
550 |
resourceMapObsoletesSystemMetadata.setArchived(true); |
|
550 | 551 |
HazelcastService.getInstance().getSystemMetadataMap().put(resourceMapObsoletes, resourceMapObsoletesSystemMetadata); |
551 | 552 |
} |
552 | 553 |
} |
... | ... | |
557 | 558 |
Identifier resourceMapObsoletedBy = new Identifier(); |
558 | 559 |
resourceMapObsoletedBy.setValue(resourceMapPrefix + obsoletedByLocalId); |
559 | 560 |
resourceMapSysMeta.setObsoletedBy(resourceMapObsoletedBy); |
561 |
resourceMapSysMeta.setArchived(true); |
|
560 | 562 |
SystemMetadata resourceMapObsoletedBySystemMetadata = HazelcastService.getInstance().getSystemMetadataMap().get(resourceMapObsoletedBy); |
561 | 563 |
if (resourceMapObsoletedBySystemMetadata != null) { |
562 | 564 |
resourceMapObsoletedBySystemMetadata.setObsoletes(resourceMapId); |
Also available in: Unified diff
set archived flag (true) when we set the obsoletedBy value in the ORE system metadata