Project

General

Profile

« Previous | Next » 

Revision 49580

Changed Crossref to use dump on mongoDB

View differences:

DLIResolvedObject.java
38 38
	private String description;
39 39

  
40 40

  
41
	private List<DLIObjectProvenance> datasourceProvenanceDLI;
42

  
43

  
41 44
	/**
42 45
	 * The completion status.
43 46
	 */
......
67 70
	/**
68 71
	 * Instantiates a new DLI object.
69 72
	 */
73

  
74

  
75
	private static final DLIResolvedObjectDeserializer deserializer = new DLIResolvedObjectDeserializer();
76

  
77
	public static DLIResolvedObject fromJson(final String json) {
78
		return new GsonBuilder().registerTypeAdapter(DLIResolvedObject.class,deserializer ).create().fromJson(json, DLIResolvedObject.class);
79

  
80
	}
81

  
70 82
	public DLIResolvedObject() {
71 83

  
72 84
	}
......
403 415
	public String getEscapedDescription() {
404 416
		return StringEscapeUtils.escapeXml11(description);
405 417
	}
418

  
419
//	public List<DLIObjectProvenance> getDatasourceProvenanceDLI() {
420
//		return datasourceProvenance.stream().map(it-> (DLIObjectProvenance) it).collect(Collectors.toList());
421
//	}
422

  
423
	public List<DLIObjectProvenance> getDliDatasourceProvenance() {
424
		return datasourceProvenance.stream().map(it-> (DLIObjectProvenance) it).collect(Collectors.toList());
425
	}
426

  
427

  
406 428
}

Also available in: Unified diff