Revision 6747
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
272 | 272 |
|
273 | 273 |
// update the system metadata for the object[s] we are revising |
274 | 274 |
if (obsoletedBy != null) { |
275 |
SystemMetadata obsoletedBySysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(obsoletedBy); |
|
275 |
//SystemMetadata obsoletedBySysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(obsoletedBy); |
|
276 |
SystemMetadata obsoletedBySysMeta = IdentifierManager.getInstance().getSystemMetadata(obsoletedBy.getValue()); |
|
276 | 277 |
if (obsoletedBySysMeta != null) { |
277 | 278 |
obsoletedBySysMeta.setObsoletes(identifier); |
278 | 279 |
HazelcastService.getInstance().getSystemMetadataMap().put(obsoletedBy, obsoletedBySysMeta); |
279 | 280 |
} |
280 | 281 |
} |
281 | 282 |
if (obsoletes != null) { |
282 |
SystemMetadata obsoletesSysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(obsoletes); |
|
283 |
//SystemMetadata obsoletesSysMeta = HazelcastService.getInstance().getSystemMetadataMap().get(obsoletes); |
|
284 |
SystemMetadata obsoletesSysMeta = IdentifierManager.getInstance().getSystemMetadata(obsoletes.getValue()); |
|
283 | 285 |
if (obsoletesSysMeta != null) { |
284 | 286 |
obsoletesSysMeta.setObsoletedBy(identifier); |
285 | 287 |
HazelcastService.getInstance().getSystemMetadataMap().put(obsoletes, obsoletesSysMeta); |
Also available in: Unified diff
for now, look up SystemMetadata directly from the table otherwise we won't have the latest access information. Need to refresh the in-memory copy everytime we edit the access policy via Metacat (includes EML parser)