Project

General

Profile

Revision 10290

Added by Jing Tao over 3 years ago

Add the checksum parameter to the write method.

View differences:

src/edu/ucsb/nceas/metacat/DocumentImplWrapper.java
30 30
import java.io.Reader;
31 31
import java.util.Date;
32 32

  
33
import org.dataone.service.types.v1.Checksum;
34

  
33 35
import edu.ucsb.nceas.metacat.database.DBConnection;
34 36

  
35 37
//import edu.ucsb.nceas.metacat.spatial.MetacatSpatialDocument;
......
59 61
	}//Constructor
60 62

  
61 63
	public String write(DBConnection conn, String xml, String pub, Reader dtd,
62
			String action, String docid, String user, String[] groups, byte[]xmlBytes, String schemaLocalLocation) throws Exception {
64
			String action, String docid, String user, String[] groups, byte[]xmlBytes, String schemaLocalLocation, Checksum checksum) throws Exception {
63 65
		return DocumentImpl.write(conn, xml, pub, dtd, action, docid, user, groups,
64
				ruleBase, needValidation, writeAccessRules, xmlBytes, schemaLocalLocation);
66
				ruleBase, needValidation, writeAccessRules, xmlBytes, schemaLocalLocation, checksum);
65 67
	}
66 68

  
67 69
	public String writeReplication(DBConnection conn, String xml, byte[]xmlBytes, String pub, Reader dtd,

Also available in: Unified diff