Revision 7150
Added by ben leinfelder about 12 years ago
D1NodeService.java | ||
---|---|---|
210 | 210 |
if (allowed) { |
211 | 211 |
try { |
212 | 212 |
// delete the document |
213 |
// TODO: the method - or one like it - actually needs to remove content not just archive it |
|
214 |
DocumentImpl.delete(localId, username, groupnames, null); |
|
213 |
DocumentImpl.delete(localId, username, groupnames, null, true); |
|
215 | 214 |
EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), username, localId, Event.DELETE.xmlValue()); |
216 | 215 |
|
217 | 216 |
// archive it |
... | ... | |
1439 | 1438 |
if (allowed) { |
1440 | 1439 |
try { |
1441 | 1440 |
// archive the document |
1442 |
// this method just archives it in metacat |
|
1443 |
DocumentImpl.delete(localId, username, groupnames, null); |
|
1441 |
DocumentImpl.delete(localId, username, groupnames, null, false); |
|
1444 | 1442 |
EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), username, localId, Event.DELETE.xmlValue()); |
1445 | 1443 |
|
1446 | 1444 |
// archive it |
Also available in: Unified diff
optionally remove the document/data file from the filesystem completely when 'deleting' it.
https://redmine.dataone.org/issues/2677