Revision 10274
Added by Jing Tao over 7 years ago
src/edu/ucsb/nceas/metacat/MetaCatServlet.java | ||
---|---|---|
51 | 51 |
import org.apache.commons.lang.StringEscapeUtils; |
52 | 52 |
import org.apache.log4j.Logger; |
53 | 53 |
import org.apache.log4j.PropertyConfigurator; |
54 |
import org.dataone.service.types.v1.Checksum; |
|
54 | 55 |
|
55 |
|
|
56 | 56 |
import edu.ucsb.nceas.metacat.common.query.EnabledQueryEngines; |
57 | 57 |
import edu.ucsb.nceas.metacat.database.DBConnection; |
58 | 58 |
import edu.ucsb.nceas.metacat.database.DBConnectionPool; |
... | ... | |
968 | 968 |
if ((userName != null) && !userName.equals("public")) { |
969 | 969 |
//formatid will be set null here since this is metacat api |
970 | 970 |
String formatId = null; |
971 |
Checksum checksum = null;//for Metacat API, we don't calculate the checksum |
|
971 | 972 |
handler.handleInsertOrUpdateAction(request.getRemoteAddr(), request.getHeader("User-Agent"), response, out, params, userName, |
972 |
groupNames, true, true, null, formatId); |
|
973 |
groupNames, true, true, null, formatId, checksum);
|
|
973 | 974 |
} else { |
974 | 975 |
response.setContentType("text/xml"); |
975 | 976 |
out.println("<?xml version=\"1.0\"?>"); |
Also available in: Unified diff
Change the signature of the method handleInsertAndUpdate.