Revision 10286
Added by Jing Tao over 7 years ago
src/edu/ucsb/nceas/metacat/util/EMLVersionsTransformer.java | ||
---|---|---|
51 | 51 |
import javax.xml.transform.TransformerConfigurationException; |
52 | 52 |
import javax.xml.transform.URIResolver; |
53 | 53 |
|
54 |
import org.dataone.service.types.v1.Checksum; |
|
54 | 55 |
import org.ecoinformatics.eml.EMLParser; |
55 | 56 |
|
56 | 57 |
|
... | ... | |
168 | 169 |
.getDBConnection("EMLVersionsTransformer.handleSingleEML200Document"); |
169 | 170 |
serialNumber = dbconn.getCheckOutSerialNumber(); |
170 | 171 |
String schemaLocation = XMLSchemaService.getInstance().getNameSpaceAndLocationStringWithoutFormatId(); |
172 |
Checksum checksum = null; |
|
171 | 173 |
documentWrapper.write(dbconn, eml210Content, pub, dtd, |
172 |
doAction, newId, owner, groups, null, schemaLocation); |
|
174 |
doAction, newId, owner, groups, null, schemaLocation, checksum);
|
|
173 | 175 |
logMetacat.warn("Doc "+docidWithRev+" was transformed to eml210 with new id "+newId); |
174 | 176 |
transformLog("Doc "+docidWithRev+" was transformed to eml210 with new id "+newId); |
175 | 177 |
} |
Also available in: Unified diff
Add the checksum parameter to the method DocumentImple.write.