Project

General

Profile

« Previous | Next » 

Revision 6239

include URL in resolve() method as well as placeholder for preference

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
24 24
package edu.ucsb.nceas.metacat.dataone;
25 25

  
26 26
import java.io.InputStream;
27
import java.math.BigInteger;
27 28
import java.util.Date;
28 29
import java.util.List;
29 30

  
......
359 360
					break;
360 361
				}
361 362
			}
363
			// set base URL
362 364
			objectLocation.setBaseURL(node.getBaseURL());
363
			// TODO set URL
364
			// TODO set preference
365
			// set URL
366
			objectLocation.setUrl(node.getBaseURL() + "/object/" + pid.getValue());
367
			// TODO set meaningful preference
368
			objectLocation.setPreference(BigInteger.ONE);
365 369
			objLocList.addObjectLocation(objectLocation);
366 370
		}
367 371
		

Also available in: Unified diff