Revision 7444
Added by ben leinfelder about 12 years ago
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
3422 | 3422 |
|
3423 | 3423 |
// set as archived in the systemMetadata |
3424 | 3424 |
String pid = IdentifierManager.getInstance().getGUID(docid, rev); |
3425 |
SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(pid); |
|
3425 |
Identifier guid = new Identifier(); |
|
3426 |
guid.setValue(pid); |
|
3427 |
SystemMetadata sysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(guid); |
|
3426 | 3428 |
if (sysMeta != null) { |
3427 | 3429 |
sysMeta.setArchived(true); |
3428 | 3430 |
sysMeta.setDateSysMetadataModified(Calendar.getInstance().getTime()); |
3429 |
Identifier guid = new Identifier(); |
|
3430 |
guid.setValue(pid); |
|
3431 | 3431 |
HazelcastService.getInstance().getSystemMetadataMap().put(guid, sysMeta); |
3432 | 3432 |
} |
3433 | 3433 |
|
Also available in: Unified diff
use Identifier object not String when retrieving SM from the HZ map to set archived during delete()