Revision 6910
Added by Chris Jones almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
123 | 123 |
// create system metadata for the document |
124 | 124 |
SystemMetadata sysMeta = new SystemMetadata(); |
125 | 125 |
sysMeta.setSerialVersion(BigInteger.valueOf(1)); |
126 |
sysMeta.setArchived(false); |
|
126 | 127 |
AccessionNumber accNum = new AccessionNumber(localId, "NONE"); |
127 | 128 |
int rev = Integer.valueOf(accNum.getRev()); |
128 | 129 |
|
... | ... | |
287 | 288 |
SystemMetadata obsoletesSysMeta = IdentifierManager.getInstance().getSystemMetadata(obsoletes.getValue()); |
288 | 289 |
if (obsoletesSysMeta != null) { |
289 | 290 |
obsoletesSysMeta.setObsoletedBy(identifier); |
290 |
HazelcastService.getInstance().getSystemMetadataMap().put(obsoletes, obsoletesSysMeta); |
|
291 |
obsoletesSysMeta.setArchived(true); |
|
292 |
HazelcastService.getInstance().getSystemMetadataMap().put(obsoletes, obsoletesSysMeta); |
|
291 | 293 |
} |
292 | 294 |
} |
293 | 295 |
|
Also available in: Unified diff
When managing obsoletes/obsoletedBy system metadata fields, set the archived flag to false initially, and set it to true on system metadata for objects that a revision obsoletes.