Project

General

Profile

« Previous | Next » 

Revision 10276

Added by Jing Tao over 7 years ago

Add the checksum parameter to the handleInsertAndUpdate method.

View differences:

src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java
457 457
									Session session = new Session();
458 458
									session.setSubject(submitter);
459 459
									MockHttpServletRequest request = new MockHttpServletRequest(null, null, null);
460
									MNodeService.getInstance(request).insertDataObject(dataObject, dataGuid, session);
460
									Checksum sum = null;
461
									MNodeService.getInstance(request).insertDataObject(dataObject, dataGuid, session, sum);
461 462
									
462 463
									remoteData = true;
463 464
								}
......
620 621
								Session session = new Session();
621 622
								session.setSubject(submitter);
622 623
								MockHttpServletRequest request = new MockHttpServletRequest(null, null, null);
623
								MNodeService.getInstance(request).insertDataObject(IOUtils.toInputStream(resourceMapXML, MetaCatServlet.DEFAULT_ENCODING), resourceMapId, session);
624
								MNodeService.getInstance(request).insertDataObject(IOUtils.toInputStream(resourceMapXML, MetaCatServlet.DEFAULT_ENCODING), resourceMapId, session, resourceMapSysMeta.getChecksum());
624 625
								MNodeService.getInstance(request).insertSystemMetadata(resourceMapSysMeta);
625 626
								logMetacat.info("Inserted ORE package: " + resourceMapId.getValue());
626 627
							}

Also available in: Unified diff