Revision 6906
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/admin/upgrade/GenerateSystemMetadata.java | ||
---|---|---|
163 | 163 |
//insert the systemmetadata object or just update it as needed |
164 | 164 |
boolean exists = IdentifierManager.getInstance().systemMetadataExists(sm.getIdentifier().getValue()); |
165 | 165 |
if (!exists) { |
166 |
IdentifierManager.getInstance().createSystemMetadata(sm); |
|
166 |
IdentifierManager.getInstance().createSystemMetadata(sm); |
|
167 |
log.info("Generated SystemMetadata for " + localId); |
|
168 |
} else { |
|
169 |
IdentifierManager.getInstance().updateSystemMetadata(sm); |
|
170 |
log.info("Updated SystemMetadata for " + localId); |
|
167 | 171 |
} |
168 |
IdentifierManager.getInstance().updateSystemMetadata(sm); |
|
169 |
|
|
170 |
log.info("generateMissingSystemMetadata(token, localId)"); |
|
171 | 172 |
} |
172 | 173 |
|
173 | 174 |
|
Also available in: Unified diff
insert OR update system metadata -- no need to do an update right after initial insert...