Revision 6787
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
215 | 215 |
DocumentImpl.delete(localId, username, groupnames, null); |
216 | 216 |
EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), username, localId, Event.DELETE.xmlValue()); |
217 | 217 |
|
218 |
// archive it |
|
219 |
SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid); |
|
220 |
sysMeta.setArchived(true); |
|
221 |
HazelcastService.getInstance().getSystemMetadataMap().put(pid, sysMeta); |
|
222 |
|
|
218 | 223 |
// remove the system metadata for it |
219 |
HazelcastService.getInstance().getSystemMetadataMap().remove(pid); |
|
224 |
//HazelcastService.getInstance().getSystemMetadataMap().remove(pid);
|
|
220 | 225 |
|
221 | 226 |
} catch (McdbDocNotFoundException e) { |
222 | 227 |
throw new NotFound("1340", "The provided identifier was invalid."); |
Also available in: Unified diff
set SystemMetadata.archived=true on MN.delete
There is ongoing discussion on what the exact behavior should be here, but this mimics Metacat's delete-as-archive action.
http://redmine.dataone.org/issues/882