Project

General

Profile

« Previous | Next » 

Revision 49142

Fixed toString() and comments

View differences:

modules/dnet-openaireplus-workflows/trunk/src/main/java/eu/dnetlib/msro/openaireplus/api/objects/ResultEntry.java
4 4
import java.util.*;
5 5
import java.util.concurrent.TimeUnit;
6 6

  
7
import com.google.gson.Gson;
7 8
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
8 9
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
9 10
import eu.dnetlib.miscutils.datetime.DateUtils;
......
39 40
	private String collectedFromId;
40 41
	private String hostedById;
41 42

  
43
	// String according to the EGI context profile, example: egi::classification::natsc::math
44
	private List<String> contexts = new ArrayList<String>();
45

  
42 46
	// String according to openaire guidelines:
43 47
	// info:eu-repo/grantAgreement/Funder/FundingProgram/ProjectID/[Jurisdiction]/[ProjectName]/[ProjectAcronym]
44
	private List<String> contexts = new ArrayList<String>();
45

  
46
	// String according to the EGI context profile, example: egi::classification::natsc::math
47 48
	private List<String> linksToProjects = new ArrayList<String>();
48 49

  
49 50
	private static long last_cache_update = 0;
......
318 319

  
319 320
	@Override
320 321
	public String toString() {
321
		return StringUtils.isNotBlank(openaireId) ? openaireId : originalId;
322
		return new Gson().toJson(this);
322 323
	}
323 324
}

Also available in: Unified diff