Revision 7156
Added by ben leinfelder over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
216 | 216 |
// archive it |
217 | 217 |
SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid); |
218 | 218 |
sysMeta.setArchived(true); |
219 |
sysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime()); |
|
219 | 220 |
HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta); |
220 | 221 |
|
221 | 222 |
} catch (McdbDocNotFoundException e) { |
... | ... | |
1444 | 1445 |
// archive it |
1445 | 1446 |
SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid); |
1446 | 1447 |
sysMeta.setArchived(true); |
1448 |
sysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime()); |
|
1447 | 1449 |
HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta); |
1448 | 1450 |
|
1449 | 1451 |
} catch (McdbDocNotFoundException e) { |
Also available in: Unified diff
update the sysmeta data modified when setting archived=true
https://redmine.dataone.org/issues/882