Revision 6710
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
30 | 30 |
import java.math.BigInteger; |
31 | 31 |
import java.security.NoSuchAlgorithmException; |
32 | 32 |
import java.sql.SQLException; |
33 |
import java.text.ParseException; |
|
34 |
import java.text.SimpleDateFormat; |
|
35 | 33 |
import java.util.Date; |
36 | 34 |
import java.util.Hashtable; |
37 |
import java.util.TimeZone; |
|
38 | 35 |
import java.util.Vector; |
39 | 36 |
|
40 | 37 |
import javax.xml.parsers.ParserConfigurationException; |
... | ... | |
357 | 354 |
|
358 | 355 |
// submitter |
359 | 356 |
Subject submitter = new Subject(); |
360 |
submitter.setValue((String) docInfo.get("user_updated"));
|
|
357 |
submitter.setValue(docInfo.get("user_updated")); |
|
361 | 358 |
sysMeta.setSubmitter(submitter); |
362 | 359 |
|
363 | 360 |
// rights holder |
364 | 361 |
Subject owner = new Subject(); |
365 |
owner.setValue((String) docInfo.get("user_owner"));
|
|
362 |
owner.setValue(docInfo.get("user_owner")); |
|
366 | 363 |
sysMeta.setRightsHolder(owner); |
367 | 364 |
|
368 | 365 |
// dates |
... | ... | |
383 | 380 |
String existingPid = docidWithoutRev + "." + existingRev; |
384 | 381 |
if (existingRev < rev) { |
385 | 382 |
// it's the old docid, until it's not |
386 |
obsoletes.setValue(existingPid );
|
|
383 |
obsoletes.setValue(existingPid); |
|
387 | 384 |
} |
388 | 385 |
if (existingRev > rev) { |
389 | 386 |
// it's the newer docid |
Also available in: Unified diff
no need to cast docInfo entries to String -- they are all strings