Revision 7430
Added by ben leinfelder almost 12 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
214 | 214 |
EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), username, localId, Event.DELETE.xmlValue()); |
215 | 215 |
|
216 | 216 |
// archive it |
217 |
SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid); |
|
218 |
sysMeta.setArchived(true); |
|
219 |
sysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime()); |
|
220 |
HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta); |
|
217 |
// DocumentImpl.delete() now sets this |
|
218 |
// see https://redmine.dataone.org/issues/3406 |
|
219 |
// SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid); |
|
220 |
// sysMeta.setArchived(true); |
|
221 |
// sysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime()); |
|
222 |
// HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta); |
|
221 | 223 |
|
222 | 224 |
} catch (McdbDocNotFoundException e) { |
223 | 225 |
throw new NotFound("1340", "The provided identifier was invalid."); |
Also available in: Unified diff
no need to mark SM as archived now that DocumentImpl.delete() does it.
https://redmine.dataone.org/issues/3406