Revision 8850
Added by Jing Tao over 10 years ago
src/edu/ucsb/nceas/metacat/dataone/hazelcast/SystemMetadataMap.java | ||
---|---|---|
29 | 29 |
|
30 | 30 |
@Override |
31 | 31 |
public void delete(Identifier arg0) { |
32 |
// we do not delete system metadata |
|
32 |
if(arg0!= null) { |
|
33 |
logMetacat.debug("delete the identifier"+arg0.getValue()); |
|
34 |
boolean success = IdentifierManager.getInstance().deleteSystemMetadata(arg0.getValue()); |
|
35 |
if(!success) { |
|
36 |
throw new RuntimeException("SystemMetadataMap.delete - the system metadata of guid - "+arg0.getValue()+" can't be removed successfully."); |
|
37 |
} |
|
38 |
} |
|
39 |
|
|
33 | 40 |
} |
34 | 41 |
|
35 | 42 |
@Override |
Also available in: Unified diff
Add the code to delete systemmetadata.