Project

General

Profile

« Previous | Next » 

Revision 51158

prod

View differences:

modules/dnet-openaire-exporter/branches/prod/deploy.info
1
{"type_source": "SVN", "goal": "package -U source:jar", 
2
"url": "http://svn-public.driver.research-infrastructures.eu/driver/dnet45/modules/dnet-openaire-exporter/trunk/", "deploy_repository": "dnet45-snapshots", "version": "4", "mail": "sandro.labruzzo@isti.cnr.it,michele.artini@isti.cnr.it, claudio.atzori@isti.cnr.it, alessia.bardi@isti.cnr.it",
3
"deploy_repository_url": "http://maven.research-infrastructures.eu/nexus/content/repositories/dnet45-snapshots", "name": "dnet-openaire-exporter"}
modules/dnet-openaire-exporter/branches/prod/src/test/java/eu/dnetlib/openaire/dsm/DatasourceApiControllerTest.java
1
package eu.dnetlib.openaire.dsm;
2

  
3
import java.nio.charset.Charset;
4
import java.util.List;
5

  
6
import eu.dnetlib.openaire.vocabularies.Country;
7
import org.junit.Ignore;
8
import org.junit.Test;
9
import org.junit.runner.RunWith;
10
import org.springframework.beans.factory.annotation.Autowired;
11
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
12
import org.springframework.boot.test.mock.mockito.MockBean;
13
import org.springframework.http.MediaType;
14
import org.springframework.test.context.junit4.SpringRunner;
15
import org.springframework.test.web.servlet.MockMvc;
16

  
17
import static java.util.Collections.singletonList;
18
import static org.hamcrest.Matchers.hasSize;
19
import static org.hamcrest.core.Is.is;
20
import static org.mockito.BDDMockito.given;
21
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
22
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
23
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
24

  
25
@RunWith(SpringRunner.class)
26
@WebMvcTest(DsmApiController.class)
27
public class DatasourceApiControllerTest {
28

  
29
	public static final MediaType APPLICATION_JSON_UTF8 = new MediaType(
30
			MediaType.APPLICATION_JSON.getType(),
31
			MediaType.APPLICATION_JSON.getSubtype(),
32
			Charset.forName("utf8"));
33

  
34
	@Autowired
35
	private MockMvc mvc;
36

  
37
	@MockBean
38
	private DsmApiController dsController;
39

  
40
	@Test
41
	@Ignore
42
	public void listCountries() throws Exception {
43
		final Country c = new Country("it", "Italy");
44
		final List<Country> countries = singletonList(c);
45

  
46
		given(dsController.listCountries()).willReturn(countries);
47

  
48
		mvc.perform(get("/ds/countries")
49
				.contentType(APPLICATION_JSON_UTF8))
50
				.andExpect(status().isOk())
51
				.andExpect(jsonPath("$", hasSize(1)))
52
				.andExpect(jsonPath("$[0].code", is(c.getCode())))
53
				.andExpect(jsonPath("$[0].name", is(c.getName())));
54
	}
55

  
56
}
modules/dnet-openaire-exporter/branches/prod/src/test/java/eu/dnetlib/openaire/funders/FunderContextClientTest.java
1
package eu.dnetlib.openaire.funders;
2

  
3
import java.io.IOException;
4
import java.nio.charset.Charset;
5
import java.util.concurrent.LinkedBlockingQueue;
6

  
7
import com.google.gson.Gson;
8
import com.google.gson.GsonBuilder;
9
import eu.dnetlib.openaire.context.Context;
10
import eu.dnetlib.openaire.context.ContextMappingUtils;
11
import eu.dnetlib.openaire.funders.domain.FunderDetails;
12
import org.apache.commons.io.IOUtils;
13
import org.junit.Before;
14
import org.junit.Test;
15

  
16
import static org.junit.Assert.assertFalse;
17
import static org.junit.Assert.assertNotNull;
18

  
19
public class FunderContextClientTest {
20

  
21
	private FunderDao fDao;
22

  
23
	@Before
24
	public void setUp() {
25
		fDao = new FunderDao();
26
	}
27

  
28
	@Test
29
	public void testParseContextProfile() throws IOException {
30
		final String contextProfile = IOUtils.toString(getClass().getResourceAsStream("ec-fp7.xml"), Charset.defaultCharset());
31
		final Context context = ContextMappingUtils.parseContext(contextProfile, new LinkedBlockingQueue<>());
32

  
33
		assertNotNull(context);
34
		assertNotNull(context.getId());
35

  
36
		final Gson gson = new GsonBuilder().setPrettyPrinting().create();
37
		final String json = gson.toJson(context);
38
		assertNotNull(json);
39
		assertFalse(json.isEmpty());
40

  
41
		//System.out.println(gson.toJson(gson.fromJson(json, Context.class)));
42

  
43
		final FunderDetails funderDetails = ContextMappingUtils.asFunderDetails(context);
44
		//System.out.println(gson.toJson(funderDetails));
45

  
46
	}
47

  
48
}
modules/dnet-openaire-exporter/branches/prod/src/test/java/eu/dnetlib/openaire/project/ProjectQueryParamsTest.java
1
package eu.dnetlib.openaire.project;
2

  
3
import eu.dnetlib.openaire.project.ProjectQueryParams;
4
import org.junit.Before;
5
import org.junit.Test;
6

  
7
import static org.junit.Assert.assertEquals;
8

  
9
public class ProjectQueryParamsTest {
10

  
11
	private ProjectQueryParams queryParams;
12

  
13
	@Before
14
	public void setUp() throws Exception {
15
		queryParams = new ProjectQueryParams();
16

  
17
	}
18

  
19
	@Test
20
	public void testVerifyParamWhiteSpace() {
21
		queryParams.verifyParam("Discovery Projects");
22
	}
23

  
24
	@Test
25
	public void testVerifyParamPercentage() {
26
		queryParams.verifyParam("Discovery%20Projects");
27
	}
28

  
29
	@Test
30
	public void testVerifyDateParam(){
31
		String correctDate = "2012-03-04";
32
		assertEquals(correctDate, queryParams.verifyDateParam(correctDate));
33

  
34
	}
35

  
36
	@Test(expected=IllegalArgumentException.class)
37
	public void testVerifyDateParamException(){
38
		String wrongDate = "12-12-12";
39
		queryParams.verifyDateParam(wrongDate);
40

  
41
	}
42
}
modules/dnet-openaire-exporter/branches/prod/src/test/java/eu/dnetlib/openaire/project/domain/ProjectDetailsTest.java
1
package eu.dnetlib.openaire.project.domain;
2

  
3
import java.io.IOException;
4

  
5
import eu.dnetlib.openaire.project.domain.db.ProjectDetails;
6
import org.junit.Test;
7

  
8
/**
9
 * Created by claudio on 05/07/2017.
10
 */
11
public class ProjectDetailsTest {
12

  
13
	@Test
14
	public void testCSV() throws IOException {
15

  
16
		final ProjectDetails p = ProjectDetails.fromCSV(
17
				"arc_________::ANZCCART,,ANZCCART,{},\"[\"\"\\u003cfundingtree\\u003e\\n      \\u003cfunder\\u003e\\n         \\u003cid\\u003earc_________::ARC\\u003c/id\\u003e\\n         \\u003cshortname\\u003eARC\\u003c/shortname\\u003e\\n         \\u003cname\\u003eAustralian Research Council (ARC)\\u003c/name\\u003e\\n         \\u003cjurisdiction\\u003eAU\\u003c/jurisdiction\\u003e\\n      \\u003c/funder\\u003e\\n      \\u003cfunding_level_0\\u003e\\n         \\u003cid\\u003earc_________::ARC::Special Research initiative (Australian and New Zealand Council for the Care of Animals in Research and Teaching)\\u003c/id\\u003e\\n         \\u003cname\\u003eSpecial Research initiative (Australian and New Zealand Council for the Care of Animals in Research and Teaching)\\u003c/name\\u003e\\n         \\u003cdescription\\u003eSpecial Research initiative (Australian and New Zealand Council for the Care of Animals in Research and Teaching)\\u003c/description\\u003e\\n         \\u003cparent/\\u003e\\n         \\u003cclass\\u003earc:fundingStream\\u003c/class\\u003e\\n      \\u003c/funding_level_0\\u003e\\n   \\u003c/fundingtree\\u003e\"\"]\"");
18

  
19
		System.out.println(p.asJson());
20

  
21
		System.out.println(p.asCSV());
22

  
23

  
24
	}
25

  
26
}
modules/dnet-openaire-exporter/branches/prod/src/test/java/eu/dnetlib/openaire/project/ProjectsControllerTest.java
1
package eu.dnetlib.openaire.project;
2

  
3
import java.io.IOException;
4

  
5
import org.antlr.stringtemplate.StringTemplate;
6
import org.apache.commons.io.IOUtils;
7
import org.apache.commons.logging.Log;
8
import org.apache.commons.logging.LogFactory;
9
import org.junit.Before;
10
import org.junit.Ignore;
11
import org.junit.Test;
12
import org.junit.runner.RunWith;
13
import org.springframework.boot.test.context.SpringBootTest;
14
import org.springframework.core.io.ClassPathResource;
15
import org.springframework.core.io.Resource;
16
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
17

  
18
import static org.junit.Assert.assertEquals;
19

  
20
@Ignore
21
@SpringBootTest
22
@RunWith(SpringJUnit4ClassRunner.class)
23
public class ProjectsControllerTest {
24

  
25
	private static final Log log = LogFactory.getLog(ProjectsControllerTest.class);
26
	private String queryTemplate = "/eu/dnetlib/openaire/sql/projects_fundings.sql.st";
27

  
28
	private Resource expectedQueryTemplate = new ClassPathResource("/eu/dnetlib/openaire/sql/expected_projects_fundings.sql.st");
29

  
30
	private ProjectsController controller;
31
	private ProjectQueryParams params;
32

  
33
	@Before
34
	public void setup() {
35
		controller = new ProjectsController();
36
		Resource template = new ClassPathResource(queryTemplate);
37

  
38
		//TODO reimplement bean injection for testing
39
		//controller.setProjectsFundingQueryTemplate(template);
40
		params = new ProjectQueryParams();
41
	}
42

  
43
	@Test
44
	public void testObtainFP7Query() throws IllegalArgumentException, IOException {
45
		params.setFundingProgramme("FP7");
46
		params.setFundingPath(null);
47
		String res = controller.obtainQuery(params);
48
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
49
		st.setAttribute("fundingprefix", "ec__________::EC::FP7");
50
		log.debug(res);
51
		log.debug(st);
52
		assertEquals(st.toString(), res);
53
	}
54

  
55
	@Test
56
	public void testObtainFP7QuerySP1() throws IllegalArgumentException, IOException {
57
		params.setFundingProgramme("FP7");
58
		params.setFundingPath("SP1");
59
		String res = controller.obtainQuery(params);
60
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
61
		st.setAttribute("fundingprefix", "ec__________::EC::FP7::SP1");
62
		log.debug(res);
63
		assertEquals(st.toString(), res);
64
	}
65

  
66
	@Test
67
	public void testObtainFP7QueryHealth() throws IllegalArgumentException, IOException {
68
		params.setFundingProgramme("FP7");
69
		params.setFundingPath("SP1::HEALTH");
70
		String res = controller.obtainQuery(params);
71
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
72
		st.setAttribute("fundingprefix", "ec__________::EC::FP7::SP1::HEALTH");
73
		log.debug(res);
74
		assertEquals(st.toString(), res);
75
	}
76

  
77
	@Test
78
	public void testObtainFP7QueryHealth2() throws IllegalArgumentException, IOException {
79
		params.setFundingProgramme("FP7");
80
		params.setFundingPath("%::HEALTH");
81
		String res = controller.obtainQuery(params);
82
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
83
		st.setAttribute("fundingprefix", "ec__________::EC::FP7::%::HEALTH");
84
		log.debug(res);
85
		assertEquals(st.toString(), res);
86
	}
87

  
88
	@Test
89
	public void testObtainWellcomeTrustQuery() throws IllegalArgumentException, IOException {
90
		params.setFundingProgramme("WT");
91
		params.setFundingPath(null);
92
		String res = controller.obtainQuery(params);
93
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
94
		st.setAttribute("fundingprefix", "wt__________::WT");
95
		log.debug(res);
96
		assertEquals(st.toString(), res);
97
	}
98

  
99
	@Test
100
	public void testObtainFCTQuery() throws IllegalArgumentException, IOException {
101
		params.setFundingProgramme("FCT");
102
		params.setFundingPath(null);
103
		String res = controller.obtainQuery(params);
104
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
105
		st.setAttribute("fundingprefix", "fct_________::FCT");
106
		log.debug(res);
107
		assertEquals(st.toString(), res);
108
	}
109

  
110
	@Test
111
	public void testQueryWithDateParams() throws IllegalArgumentException, IOException {
112
		params.setFundingProgramme("WT");
113
		params.setFundingPath(null);
114
		params.setStartFrom("2015-05-04");
115
		String res = controller.obtainQuery(params);
116
		log.debug(res);
117
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
118
		st.setAttribute("fundingprefix", "wt__________::WT");
119
		String q = st.toString() + " AND startdate >= '2015-05-04'";
120
		assertEquals(q, res);
121
	}
122

  
123
	@Test
124
	public void testObtainSNSFQuery() throws IllegalArgumentException, IOException {
125
		params.setFundingProgramme("SNSF");
126
		params.setFundingPath(null);
127
		String res = controller.obtainQuery(params);
128
		final StringTemplate st = new StringTemplate(IOUtils.toString(expectedQueryTemplate.getInputStream(),  ProjectsController.UTF8));
129
		st.setAttribute("fundingprefix", "snsf________::SNSF");
130
		log.debug(res);
131
		assertEquals(st.toString(), res);
132
	}
133

  
134
}
modules/dnet-openaire-exporter/branches/prod/src/test/resources/eu/dnetlib/openaire/sql/expected_projects_fundings.sql.st
1
SELECT
2
	funder,
3
	jurisdiction,
4
	fundingpathid,
5
	acronym,
6
	title,
7
	code,
8
	startdate,
9
	enddate
10
FROM projects_api
11
WHERE fundingpathid like '$fundingprefix$%'
modules/dnet-openaire-exporter/branches/prod/src/test/resources/eu/dnetlib/openaire/funders/ec-fp7.xml
1
<RESOURCE_PROFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
	<HEADER>
3
		<RESOURCE_IDENTIFIER value="40093bfb-22af-4188-9cb6-a43923dfd878_Q29udGV4dERTUmVzb3VyY2VzL0NvbnRleHREU1Jlc291cmNlVHlwZQ=="/>
4
		<RESOURCE_TYPE value="ContextDSResourceType"/>
5
		<RESOURCE_KIND value="ContextDSResources"/>
6
		<RESOURCE_URI value=""/>
7
		<DATE_OF_CREATION value="2017-11-26T21:23:48+00:00"/>
8
	</HEADER>
9
	<BODY>
10
		<CONFIGURATION>
11
			<context id="EC" label="European Commission" type="funding">
12
				<param name="prova">PROVA</param>
13
				<category claim="false" id="EC::FP7" label="SEVENTH FRAMEWORK PROGRAMME">
14
					<param name="name">FP7</param>
15
					<param name="openaireId">ec__________::EC::FP7</param>
16
					<param name="class">ec:frameworkprogram</param>
17
					<concept claim="false" id="EC::FP7::SP3" label="SP3-People">
18
						<param name="name">SP3</param>
19
						<param name="openaireId">ec__________::EC::FP7::SP3</param>
20
						<param name="class">ec:specificprogram</param>
21
						<concept claim="false" id="EC::FP7::SP3::PEOPLE" label="Marie-Curie Actions">
22
							<param name="name">PEOPLE</param>
23
							<param name="openaireId">ec__________::EC::FP7::SP3::PEOPLE</param>
24
							<param name="class">ec:program</param>
25
						</concept>
26
					</concept>
27
					<concept claim="false" id="EC::FP7::SP1" label="SP1-Cooperation">
28
						<param name="name">SP1</param>
29
						<param name="openaireId">ec__________::EC::FP7::SP1</param>
30
						<param name="class">ec:specificprogram</param>
31
						<concept claim="false" id="EC::FP7::SP1::ENERGY" label="Energy">
32
							<param name="name">ENERGY</param>
33
							<param name="openaireId">ec__________::EC::FP7::SP1::ENERGY</param>
34
							<param name="class">ec:program</param>
35
						</concept>
36
						<concept claim="false" id="EC::FP7::SP1::ENV" label="Environment (including Climate Change)">
37
							<param name="name">ENV</param>
38
							<param name="openaireId">ec__________::EC::FP7::SP1::ENV</param>
39
							<param name="class">ec:program</param>
40
						</concept>
41
						<concept claim="false" id="EC::FP7::SP1::TPT" label="Transport (including Aeronautics)">
42
							<param name="name">TPT</param>
43
							<param name="openaireId">ec__________::EC::FP7::SP1::TPT</param>
44
							<param name="class">ec:program</param>
45
						</concept>
46
						<concept claim="false" id="EC::FP7::SP1::NMP" label="Nanosciences, Nanotechnologies, Materials and new Production Technologies - NMP">
47
							<param name="name">NMP</param>
48
							<param name="openaireId">ec__________::EC::FP7::SP1::NMP</param>
49
							<param name="class">ec:program</param>
50
						</concept>
51
						<concept claim="false" id="EC::FP7::SP1::SP1-JTI" label="Joint Technology Initiatives (Annex IV-SP1)">
52
							<param name="name">SP1-JTI</param>
53
							<param name="openaireId">ec__________::EC::FP7::SP1::SP1-JTI</param>
54
							<param name="class">ec:program</param>
55
						</concept>
56
						<concept claim="false" id="EC::FP7::SP1::HEALTH" label="Health">
57
							<param name="name">HEALTH</param>
58
							<param name="openaireId">ec__________::EC::FP7::SP1::HEALTH</param>
59
							<param name="class">ec:program</param>
60
						</concept>
61
						<concept claim="false" id="EC::FP7::SP1::ICT" label="Information and Communication Technologies">
62
							<param name="name">ICT</param>
63
							<param name="openaireId">ec__________::EC::FP7::SP1::ICT</param>
64
							<param name="class">ec:program</param>
65
						</concept>
66
						<concept claim="false" id="EC::FP7::SP1::KBBE" label="Food, Agriculture and Fisheries, and Biotechnology">
67
							<param name="name">KBBE</param>
68
							<param name="openaireId">ec__________::EC::FP7::SP1::KBBE</param>
69
							<param name="class">ec:program</param>
70
						</concept>
71
						<concept claim="false" id="EC::FP7::SP1::SEC" label="Security">
72
							<param name="name">SEC</param>
73
							<param name="openaireId">ec__________::EC::FP7::SP1::SEC</param>
74
							<param name="class">ec:program</param>
75
						</concept>
76
						<concept claim="false" id="EC::FP7::SP1::SSH" label="Socio-economic sciences and Humanities">
77
							<param name="name">SSH</param>
78
							<param name="openaireId">ec__________::EC::FP7::SP1::SSH</param>
79
							<param name="class">ec:program</param>
80
						</concept>
81
						<concept claim="false" id="EC::FP7::SP1::SPA" label="Space">
82
							<param name="name">SPA</param>
83
							<param name="openaireId">ec__________::EC::FP7::SP1::SPA</param>
84
							<param name="class">ec:program</param>
85
						</concept>
86
						<concept claim="false" id="EC::FP7::SP1::GA" label="General Activities">
87
							<param name="name">GA</param>
88
							<param name="openaireId">ec__________::EC::FP7::SP1::GA</param>
89
							<param name="class">ec:program</param>
90
						</concept>
91
					</concept>
92
					<concept claim="false" id="EC::FP7::SP2" label="SP2-Ideas">
93
						<param name="name">SP2</param>
94
						<param name="openaireId">ec__________::EC::FP7::SP2</param>
95
						<param name="class">ec:specificprogram</param>
96
						<concept claim="false" id="EC::FP7::SP2::ERC" label="ERC">
97
							<param name="name">ERC</param>
98
							<param name="openaireId">ec__________::EC::FP7::SP2::ERC</param>
99
							<param name="class">ec:program</param>
100
						</concept>
101
					</concept>
102
					<concept claim="false" id="EC::FP7::SP4" label="SP4-Capacities">
103
						<param name="name">SP4</param>
104
						<param name="openaireId">ec__________::EC::FP7::SP4</param>
105
						<param name="class">ec:specificprogram</param>
106
						<concept claim="false" id="EC::FP7::SP4::SME" label="Research for the benefit of SMEs">
107
							<param name="name">SME</param>
108
							<param name="openaireId">ec__________::EC::FP7::SP4::SME</param>
109
							<param name="class">ec:program</param>
110
						</concept>
111
						<concept claim="false" id="EC::FP7::SP4::INFRA" label="Research Infrastructures">
112
							<param name="name">INFRA</param>
113
							<param name="openaireId">ec__________::EC::FP7::SP4::INFRA</param>
114
							<param name="class">ec:program</param>
115
						</concept>
116
						<concept claim="false" id="EC::FP7::SP4::SiS" label="Science in Society">
117
							<param name="name">SiS</param>
118
							<param name="openaireId">ec__________::EC::FP7::SP4::SiS</param>
119
							<param name="class">ec:program</param>
120
						</concept>
121
						<concept claim="false" id="EC::FP7::SP4::REGIONS" label="Regions of Knowledge">
122
							<param name="name">REGIONS</param>
123
							<param name="openaireId">ec__________::EC::FP7::SP4::REGIONS</param>
124
							<param name="class">ec:program</param>
125
						</concept>
126
						<concept claim="false" id="EC::FP7::SP4::REGPOT" label="Research Potential">
127
							<param name="name">REGPOT</param>
128
							<param name="openaireId">ec__________::EC::FP7::SP4::REGPOT</param>
129
							<param name="class">ec:program</param>
130
						</concept>
131
						<concept claim="false" id="EC::FP7::SP4::INCO" label="Activities of International Cooperation">
132
							<param name="name">INCO</param>
133
							<param name="openaireId">ec__________::EC::FP7::SP4::INCO</param>
134
							<param name="class">ec:program</param>
135
						</concept>
136
						<concept claim="false" id="EC::FP7::SP4::COH" label="Support for the coherent development of research policies">
137
							<param name="name">COH</param>
138
							<param name="openaireId">ec__________::EC::FP7::SP4::COH</param>
139
							<param name="class">ec:program</param>
140
						</concept>
141
					</concept>
142
					<concept claim="false" id="EC::FP7::SP5" label="SP5-Euratom">
143
						<param name="name">SP5</param>
144
						<param name="openaireId">ec__________::EC::FP7::SP5</param>
145
						<param name="class">ec:specificprogram</param>
146
						<concept claim="false" id="EC::FP7::SP5::Fission" label="Nuclear Fission and Radiation Protection">
147
							<param name="name">Fission</param>
148
							<param name="openaireId">ec__________::EC::FP7::SP5::Fission</param>
149
							<param name="class">ec:program</param>
150
						</concept>
151
						<concept claim="false" id="EC::FP7::SP5::Fusion" label="Fusion Energy">
152
							<param name="name">Fusion</param>
153
							<param name="openaireId">ec__________::EC::FP7::SP5::Fusion</param>
154
							<param name="class">ec:program</param>
155
						</concept>
156
					</concept>
157
					<concept claim="false" id="EC::FP7::UNKNOWN" label=" ">
158
						<param name="name">UNKNOWN</param>
159
						<param name="openaireId">ec__________::EC::FP7::UNKNOWN</param>
160
						<param name="class">ec:specificprogram</param>
161
						<concept claim="false" id="EC::FP7::UNKNOWN::UNKNOWN" label=" ">
162
							<param name="name">UNKNOWN</param>
163
							<param name="openaireId">ec__________::EC::FP7::UNKNOWN::UNKNOWN</param>
164
							<param name="class">ec:program</param>
165
						</concept>
166
					</concept>
167
				</category>
168
				<category claim="false" id="EC::H2020" label="Horizon 2020 Framework Programme">
169
					<param name="name">H2020</param>
170
					<param name="openaireId">ec__________::EC::H2020</param>
171
					<param name="class">ec:h2020fundings</param>
172
					<concept claim="false" id="EC::H2020::MSCA-IF-EF-ST" label="Standard European Fellowships">
173
						<param name="name">MSCA-IF-EF-ST</param>
174
						<param name="openaireId">ec__________::EC::H2020::MSCA-IF-EF-ST</param>
175
						<param name="class">ec:h2020toas</param>
176
					</concept>
177
					<concept claim="false" id="EC::H2020::H2020-EEN-SGA" label="Specific Grant Agreement  Enterprise Europe Network (EEN)">
178
						<param name="name">H2020-EEN-SGA</param>
179
						<param name="openaireId">ec__________::EC::H2020::H2020-EEN-SGA</param>
180
						<param name="class">ec:h2020toas</param>
181
					</concept>
182
					<concept claim="false" id="EC::H2020::RIA" label="Research and Innovation action">
183
						<param name="name">RIA</param>
184
						<param name="openaireId">ec__________::EC::H2020::RIA</param>
185
						<param name="class">ec:h2020toas</param>
186
					</concept>
187
					<concept claim="false" id="EC::H2020::ERC" label="European Research Council">
188
						<param name="name">ERC</param>
189
						<param name="openaireId">ec__________::EC::H2020::ERC</param>
190
						<param name="class">ec:h2020fundings</param>
191
						<concept claim="false" id="EC::H2020::ERC::ERC-POC" label="Proof of Concept Grant">
192
							<param name="name">ERC-POC</param>
193
							<param name="openaireId">ec__________::EC::H2020::ERC::ERC-POC</param>
194
							<param name="class">ec:h2020toas</param>
195
						</concept>
196
						<concept claim="false" id="EC::H2020::ERC::ERC-STG" label="Starting Grant">
197
							<param name="name">ERC-STG</param>
198
							<param name="openaireId">ec__________::EC::H2020::ERC::ERC-STG</param>
199
							<param name="class">ec:h2020toas</param>
200
						</concept>
201
						<concept claim="false" id="EC::H2020::ERC::ERC-ADG" label="Advanced Grant">
202
							<param name="name">ERC-ADG</param>
203
							<param name="openaireId">ec__________::EC::H2020::ERC::ERC-ADG</param>
204
							<param name="class">ec:h2020toas</param>
205
						</concept>
206
						<concept claim="false" id="EC::H2020::ERC::ERC-COG" label="Consolidator Grant">
207
							<param name="name">ERC-COG</param>
208
							<param name="openaireId">ec__________::EC::H2020::ERC::ERC-COG</param>
209
							<param name="class">ec:h2020toas</param>
210
						</concept>
211
						<concept claim="false" id="EC::H2020::ERC::ERC-LVG" label="ERC low value grant">
212
							<param name="name">ERC-LVG</param>
213
							<param name="openaireId">ec__________::EC::H2020::ERC::ERC-LVG</param>
214
							<param name="class">ec:h2020toas</param>
215
						</concept>
216
					</concept>
217
					<concept claim="false" id="EC::H2020::MSCA-ITN-ETN" label="European Training Networks">
218
						<param name="name">MSCA-ITN-ETN</param>
219
						<param name="openaireId">ec__________::EC::H2020::MSCA-ITN-ETN</param>
220
						<param name="class">ec:h2020toas</param>
221
					</concept>
222
					<concept claim="false" id="EC::H2020::MSCA-IF-GF" label="Global Fellowships">
223
						<param name="name">MSCA-IF-GF</param>
224
						<param name="openaireId">ec__________::EC::H2020::MSCA-IF-GF</param>
225
						<param name="class">ec:h2020toas</param>
226
					</concept>
227
					<concept claim="false" id="EC::H2020::SME-2" label="SME instrument phase 2">
228
						<param name="name">SME-2</param>
229
						<param name="openaireId">ec__________::EC::H2020::SME-2</param>
230
						<param name="class">ec:h2020toas</param>
231
					</concept>
232
					<concept claim="false" id="EC::H2020::SESAR-IA" label="Innovation action">
233
						<param name="name">SESAR-IA</param>
234
						<param name="openaireId">ec__________::EC::H2020::SESAR-IA</param>
235
						<param name="class">ec:h2020toas</param>
236
					</concept>
237
					<concept claim="false" id="EC::H2020::MSCA-RISE" label="RISE">
238
						<param name="name">MSCA-RISE</param>
239
						<param name="openaireId">ec__________::EC::H2020::MSCA-RISE</param>
240
						<param name="class">ec:h2020toas</param>
241
					</concept>
242
					<concept claim="false" id="EC::H2020::IA" label="Innovation action">
243
						<param name="name">IA</param>
244
						<param name="openaireId">ec__________::EC::H2020::IA</param>
245
						<param name="class">ec:h2020toas</param>
246
					</concept>
247
					<concept claim="false" id="EC::H2020::CSA" label="Coordination and support action">
248
						<param name="name">CSA</param>
249
						<param name="openaireId">ec__________::EC::H2020::CSA</param>
250
						<param name="class">ec:h2020toas</param>
251
					</concept>
252
					<concept claim="false" id="EC::H2020::MSCA-COFUND-DP" label="Doctoral programmes">
253
						<param name="name">MSCA-COFUND-DP</param>
254
						<param name="openaireId">ec__________::EC::H2020::MSCA-COFUND-DP</param>
255
						<param name="class">ec:h2020toas</param>
256
					</concept>
257
					<concept claim="false" id="EC::H2020::SME-1" label="SME instrument phase 1">
258
						<param name="name">SME-1</param>
259
						<param name="openaireId">ec__________::EC::H2020::SME-1</param>
260
						<param name="class">ec:h2020toas</param>
261
					</concept>
262
					<concept claim="false" id="EC::H2020::Shift2Rail-RIA" label="Research and Innovation action">
263
						<param name="name">Shift2Rail-RIA</param>
264
						<param name="openaireId">ec__________::EC::H2020::Shift2Rail-RIA</param>
265
						<param name="class">ec:h2020toas</param>
266
					</concept>
267
					<concept claim="false" id="EC::H2020::CS2-IA" label="Innovation action">
268
						<param name="name">CS2-IA</param>
269
						<param name="openaireId">ec__________::EC::H2020::CS2-IA</param>
270
						<param name="class">ec:h2020toas</param>
271
					</concept>
272
					<concept claim="false" id="EC::H2020::CS2-RIA" label="Research and Innovation action">
273
						<param name="name">CS2-RIA</param>
274
						<param name="openaireId">ec__________::EC::H2020::CS2-RIA</param>
275
						<param name="class">ec:h2020toas</param>
276
					</concept>
277
					<concept claim="false" id="EC::H2020::MSCA-ITN-EID" label="European Industrial Doctorates">
278
						<param name="name">MSCA-ITN-EID</param>
279
						<param name="openaireId">ec__________::EC::H2020::MSCA-ITN-EID</param>
280
						<param name="class">ec:h2020toas</param>
281
					</concept>
282
					<concept claim="false" id="EC::H2020::MSCA-IF-EF-RI" label="Reintegration panel">
283
						<param name="name">MSCA-IF-EF-RI</param>
284
						<param name="openaireId">ec__________::EC::H2020::MSCA-IF-EF-RI</param>
285
						<param name="class">ec:h2020toas</param>
286
					</concept>
287
					<concept claim="false" id="EC::H2020::FCH2-RIA" label="Research and Innovation action">
288
						<param name="name">FCH2-RIA</param>
289
						<param name="openaireId">ec__________::EC::H2020::FCH2-RIA</param>
290
						<param name="class">ec:h2020toas</param>
291
					</concept>
292
					<concept claim="false" id="EC::H2020::ERA-NET-Cofund" label="ERA-NET Cofund">
293
						<param name="name">ERA-NET-Cofund</param>
294
						<param name="openaireId">ec__________::EC::H2020::ERA-NET-Cofund</param>
295
						<param name="class">ec:h2020toas</param>
296
					</concept>
297
					<concept claim="false" id="EC::H2020::SESAR-CSA" label="Coordination and Support Action">
298
						<param name="name">SESAR-CSA</param>
299
						<param name="openaireId">ec__________::EC::H2020::SESAR-CSA</param>
300
						<param name="class">ec:h2020toas</param>
301
					</concept>
302
					<concept claim="false" id="EC::H2020::SESAR-RIA" label="Research and Innovation action">
303
						<param name="name">SESAR-RIA</param>
304
						<param name="openaireId">ec__________::EC::H2020::SESAR-RIA</param>
305
						<param name="class">ec:h2020toas</param>
306
					</concept>
307
					<concept claim="false" id="EC::H2020::BBI-RIA" label="Bio-based Industries Research and Innovation action">
308
						<param name="name">BBI-RIA</param>
309
						<param name="openaireId">ec__________::EC::H2020::BBI-RIA</param>
310
						<param name="class">ec:h2020toas</param>
311
					</concept>
312
					<concept claim="false" id="EC::H2020::MSCA-COFUND-FP" label="Fellowship programmes">
313
						<param name="name">MSCA-COFUND-FP</param>
314
						<param name="openaireId">ec__________::EC::H2020::MSCA-COFUND-FP</param>
315
						<param name="class">ec:h2020toas</param>
316
					</concept>
317
					<concept claim="false" id="EC::H2020::CSA-LS" label="CSA Lump sum">
318
						<param name="name">CSA-LS</param>
319
						<param name="openaireId">ec__________::EC::H2020::CSA-LS</param>
320
						<param name="class">ec:h2020toas</param>
321
					</concept>
322
					<concept claim="false" id="EC::H2020::COFUND-PCP" label="COFUND (PCP)">
323
						<param name="name">COFUND-PCP</param>
324
						<param name="openaireId">ec__________::EC::H2020::COFUND-PCP</param>
325
						<param name="class">ec:h2020toas</param>
326
					</concept>
327
					<concept claim="false" id="EC::H2020::ECSEL-RIA" label="ECSEL Research and Innovation Action">
328
						<param name="name">ECSEL-RIA</param>
329
						<param name="openaireId">ec__________::EC::H2020::ECSEL-RIA</param>
330
						<param name="class">ec:h2020toas</param>
331
					</concept>
332
					<concept claim="false" id="EC::H2020::SGA-CSA" label="Specific Grant agreement and Coordination and Support Action">
333
						<param name="name">SGA-CSA</param>
334
						<param name="openaireId">ec__________::EC::H2020::SGA-CSA</param>
335
						<param name="class">ec:h2020toas</param>
336
					</concept>
337
					<concept claim="false" id="EC::H2020::MSCA-ITN-EJD" label="European Joint Doctorates">
338
						<param name="name">MSCA-ITN-EJD</param>
339
						<param name="openaireId">ec__________::EC::H2020::MSCA-ITN-EJD</param>
340
						<param name="class">ec:h2020toas</param>
341
					</concept>
342
					<concept claim="false" id="EC::H2020::MSCA-IF-EF-CAR" label="Career Restart panel">
343
						<param name="name">MSCA-IF-EF-CAR</param>
344
						<param name="openaireId">ec__________::EC::H2020::MSCA-IF-EF-CAR</param>
345
						<param name="class">ec:h2020toas</param>
346
					</concept>
347
					<concept claim="false" id="EC::H2020::BBI-IA-DEMO" label="Bio-based Industries Innovation action - Demonstration">
348
						<param name="name">BBI-IA-DEMO</param>
349
						<param name="openaireId">ec__________::EC::H2020::BBI-IA-DEMO</param>
350
						<param name="class">ec:h2020toas</param>
351
					</concept>
352
					<concept claim="false" id="EC::H2020::IMI2-RIA" label="Research and Innovation action">
353
						<param name="name">IMI2-RIA</param>
354
						<param name="openaireId">ec__________::EC::H2020::IMI2-RIA</param>
355
						<param name="class">ec:h2020toas</param>
356
					</concept>
357
					<concept claim="false" id="EC::H2020::MSCA-IF-EF-SE" label="Society and Enterprise panel">
358
						<param name="name">MSCA-IF-EF-SE</param>
359
						<param name="openaireId">ec__________::EC::H2020::MSCA-IF-EF-SE</param>
360
						<param name="class">ec:h2020toas</param>
361
					</concept>
362
					<concept claim="false" id="EC::H2020::FCH2-IA" label="Innovation action">
363
						<param name="name">FCH2-IA</param>
364
						<param name="openaireId">ec__________::EC::H2020::FCH2-IA</param>
365
						<param name="class">ec:h2020toas</param>
366
					</concept>
367
					<concept claim="false" id="EC::H2020::BBI-IA-FLAG" label="Bio-based Industries Innovation action - Flagship">
368
						<param name="name">BBI-IA-FLAG</param>
369
						<param name="openaireId">ec__________::EC::H2020::BBI-IA-FLAG</param>
370
						<param name="class">ec:h2020toas</param>
371
					</concept>
372
					<concept claim="false" id="EC::H2020::ECSEL-IA" label="ECSEL Innovation Action">
373
						<param name="name">ECSEL-IA</param>
374
						<param name="openaireId">ec__________::EC::H2020::ECSEL-IA</param>
375
						<param name="class">ec:h2020toas</param>
376
					</concept>
377
					<concept claim="false" id="EC::H2020::BBI-CSA" label="Bio-based Industries Coordination and Support action">
378
						<param name="name">BBI-CSA</param>
379
						<param name="openaireId">ec__________::EC::H2020::BBI-CSA</param>
380
						<param name="class">ec:h2020toas</param>
381
					</concept>
382
					<concept claim="false" id="EC::H2020::IMI2-CSA" label="Coordination &amp; support action">
383
						<param name="name">IMI2-CSA</param>
384
						<param name="openaireId">ec__________::EC::H2020::IMI2-CSA</param>
385
						<param name="class">ec:h2020toas</param>
386
					</concept>
387
					<concept claim="false" id="EC::H2020::PCP" label="Pre-Commercial Procurement">
388
						<param name="name">PCP</param>
389
						<param name="openaireId">ec__________::EC::H2020::PCP</param>
390
						<param name="class">ec:h2020toas</param>
391
					</concept>
392
					<concept claim="false" id="EC::H2020::CS2-CSA" label="Coordination &amp; support action">
393
						<param name="name">CS2-CSA</param>
394
						<param name="openaireId">ec__________::EC::H2020::CS2-CSA</param>
395
						<param name="class">ec:h2020toas</param>
396
					</concept>
397
					<concept claim="false" id="EC::H2020::FCH2-CSA" label="Coordination &amp; support action">
398
						<param name="name">FCH2-CSA</param>
399
						<param name="openaireId">ec__________::EC::H2020::FCH2-CSA</param>
400
						<param name="class">ec:h2020toas</param>
401
					</concept>
402
					<concept claim="false" id="EC::H2020::COFUND-EJP" label="COFUND (European Joint Programme)">
403
						<param name="name">COFUND-EJP</param>
404
						<param name="openaireId">ec__________::EC::H2020::COFUND-EJP</param>
405
						<param name="class">ec:h2020toas</param>
406
					</concept>
407
					<concept claim="false" id="EC::H2020::SGA-RIA" label="SGA-RIA">
408
						<param name="name">SGA-RIA</param>
409
						<param name="openaireId">ec__________::EC::H2020::SGA-RIA</param>
410
						<param name="class">ec:h2020toas</param>
411
					</concept>
412
					<concept claim="false" id="EC::H2020::Shift2Rail-IA" label="Innovation action">
413
						<param name="name">Shift2Rail-IA</param>
414
						<param name="openaireId">ec__________::EC::H2020::Shift2Rail-IA</param>
415
						<param name="class">ec:h2020toas</param>
416
					</concept>
417
					<concept claim="false" id="EC::H2020::Shift2Rail-CSA" label="Coordination and Support action">
418
						<param name="name">Shift2Rail-CSA</param>
419
						<param name="openaireId">ec__________::EC::H2020::Shift2Rail-CSA</param>
420
						<param name="class">ec:h2020toas</param>
421
					</concept>
422
					<concept claim="false" id="EC::H2020::PPI" label="Public Procurement of Innovative solutions">
423
						<param name="name">PPI</param>
424
						<param name="openaireId">ec__________::EC::H2020::PPI</param>
425
						<param name="class">ec:h2020toas</param>
426
					</concept>
427
					<concept claim="false" id="EC::H2020::COFUND-PPI" label="COFUND (PPI)">
428
						<param name="name">COFUND-PPI</param>
429
						<param name="openaireId">ec__________::EC::H2020::COFUND-PPI</param>
430
						<param name="class">ec:h2020toas</param>
431
					</concept>
432
				</category>
433
			</context>
434
		</CONFIGURATION>
435
		<STATUS/>
436
		<SECURITY_PARAMETERS/>
437
	</BODY>
438
</RESOURCE_PROFILE>
modules/dnet-openaire-exporter/branches/prod/src/test/resources/eu/dnetlib/openaire/exporter/FCT-project.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ROW>
3
	<FIELD name="funder">FCT</FIELD>
4
	<FIELD name="jurisdiction">PT</FIELD>
5
	<FIELD name="end_date">2003-10-31</FIELD>
6
	<FIELD name="grant_agreement_number">32639</FIELD>
7
	<FIELD name="title">Social Classes and «lifestyles» in the city of Oporto</FIELD>
8
	<FIELD name="fundingpathid">fct_________::FCT::Orçamento de Funcionamento/POSC</FIELD>
9
	<FIELD name="acronym">PTDC/FIL-FIL/109889/2009</FIELD>
10
	<FIELD name="start_date">2000-11-01</FIELD>
11
	<FIELD name="description">description of the funding path</FIELD>
12
</ROW> 
modules/dnet-openaire-exporter/branches/prod/src/test/resources/eu/dnetlib/openaire/exporter/FP7-project.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ROW>
3
	<FIELD name="funder">EC</FIELD>
4
	<FIELD name="jurisdiction">EU</FIELD>
5
	<FIELD name="end_date">2012-07-31</FIELD>
6
	<FIELD name="grant_agreement_number">255646</FIELD>
7
	<FIELD name="title">Semiconductor lasers for generation of non-diffracting (Bessel) beams.</FIELD>
8
	<FIELD name="fundingpathid">ec__________::EC::FP7::SP3::PEOPLE</FIELD>
9
	<FIELD name="acronym">SENDBEAMS</FIELD>
10
	<FIELD name="start_date">2010-08-01</FIELD>
11
	<FIELD name="description">description of the funding path</FIELD>
12
</ROW> 
13

  
14
	
modules/dnet-openaire-exporter/branches/prod/src/test/resources/eu/dnetlib/openaire/exporter/SFI-project.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ROW>
3
	<FIELD name="funder">SFI</FIELD>
4
	<FIELD name="end_date">2016-08-31</FIELD>
5
	<FIELD name="grant_agreement_number">14/ADV/RC3022</FIELD>
6
	<FIELD name="title">Dr. Vesna Jaksic</FIELD>
7
	<FIELD name="acronym" isNull="true"/>
8
	<FIELD name="fundingpathid">sfi_________::SFI::Advance Award Programme</FIELD>
9
	<FIELD name="jurisdiction" isNull="true"/>
10
	<FIELD name="start_date">2014-09-01</FIELD>
11
</ROW>
modules/dnet-openaire-exporter/branches/prod/src/test/resources/eu/dnetlib/openaire/exporter/MSES-project.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<ROW>
3
	<FIELD name="funder">MSES</FIELD>
4
	<FIELD name="end_date">2009-12-31</FIELD>
5
	<FIELD name="grant_agreement_number">001-0000000-3177</FIELD>
6
	<FIELD name="title">Residence time of bacteria Escherichia coli in seawater and marine organisms</FIELD>
7
	<FIELD name="acronym" isNull="true"/>
8
	<FIELD name="fundingpathid">irb_hr______::MSES::fundingStream</FIELD>
9
	<FIELD name="jurisdiction">HR</FIELD>
10
	<FIELD name="start_date">2007-01-01</FIELD>
11
</ROW>
modules/dnet-openaire-exporter/branches/prod/src/test/resources/eu/dnetlib/openaire/exporter/WT-project.xml
1
<ROW>
2
	<FIELD name="funder">WT</FIELD>
3
	<FIELD name="end_date">2013-07-29</FIELD>
4
	<FIELD name="grant_agreement_number">098241</FIELD>
5
	<FIELD name="title">EYEDIO DIGI - DEVELOPMENT OF AN INNOVATIVE, AFFORDABLE, EASY TO USE, HANDHELD RETINAL IMAGING PRODUCT FOR THE DIAGNOSIS OF DIABETIC RETINOPATHY.</FIELD>
6
	<FIELD name="acronym"></FIELD>
7
	<FIELD name="fundingpathid">wt__________::WT::Immunology and Infectious Disease</FIELD>
8
	<FIELD name="start_date">2012-01-30</FIELD>
9
	<FIELD name="jurisdiction"/>
10
	<FIELD name="description">description of the funding path</FIELD>
11
</ROW> 
modules/dnet-openaire-exporter/branches/prod/src/test/resources/logback-test.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<configuration>
3
	<include resource="org/springframework/boot/logging/logback/base.xml"/>
4
	<logger name="org.springframework" level="OFF">
5
		<appender-ref ref="CONSOLE" />
6
	</logger>
7
	<logger name="root" level="OFF">
8
		<appender-ref ref="CONSOLE" />
9
	</logger>
10
	<logger name="eu.dnetlib" level="INFO">
11
		<appender-ref ref="CONSOLE" />
12
	</logger>
13
	<logger name="eu.dnetlib.openaire.exporter" level="INFO">
14
		<appender-ref ref="CONSOLE" />
15
	</logger>
16
</configuration>
modules/dnet-openaire-exporter/branches/prod/src/main/java/eu/dnetlib/OpenaireExporterConfig.java
1
package eu.dnetlib;
2

  
3
import org.springframework.beans.factory.annotation.Value;
4
import org.springframework.boot.context.properties.ConfigurationProperties;
5
import org.springframework.context.annotation.Configuration;
6
import org.springframework.context.annotation.PropertySource;
7
import org.springframework.core.io.ClassPathResource;
8
import org.springframework.core.io.Resource;
9

  
10
/**
11
 * Created by Alessia Bardi on 31/03/17.
12
 *
13
 * @author Alessia Bardi, Claudio Atzori
14
 */
15
@Configuration
16
@PropertySource("classpath:global.properties")
17
@ConfigurationProperties(prefix = "openaire.exporter")
18
public class OpenaireExporterConfig {
19

  
20
	// ISLOOKUP
21
	private ClassPathResource findSolrIndexUrl;
22
	private ClassPathResource findIndexDsInfo;
23
	private ClassPathResource findObjectStore;
24
	private ClassPathResource findFunderContexts;
25
	private ClassPathResource findCommunityContexts;
26
	private ClassPathResource getRepoProfile;
27

  
28
	@Value("${openaire.exporter.oaf2HBaseWfId}")
29
	private String oaf2HBaseWfId;
30

  
31
	private String isLookupUrl;
32
	private String objectStoreServiceUrl;
33
	private String isRegistryServiceUrl;
34

  
35
	private int requestWorkers = 100;
36
	private int requestTimeout = 10;
37

  
38
	private Datasource datasource;
39
	private Project project;
40
	private Jdbc jdbc;
41
	private Swagger swaggerDsm;
42
	private Swagger swaggerProjects;
43
	private Swagger swaggerFunders;
44
	private Swagger swaggerCommunities;
45

  
46
	private Vocabularies vocabularies;
47

  
48
	public static class Datasource {
49
		// MONGODB
50
		private String mongoHost;
51
		private int mongoPort;
52
		private String mongoCollectionName;
53
		private String mongoDbName;
54
		private int mongoConnectionsPerHost;
55
		private int mongoQueryLimit;
56

  
57
		public String getMongoHost() {
58
			return mongoHost;
59
		}
60

  
61
		public void setMongoHost(final String mongoHost) {
62
			this.mongoHost = mongoHost;
63
		}
64

  
65
		public int getMongoPort() {
66
			return mongoPort;
67
		}
68

  
69
		public void setMongoPort(final int mongoPort) {
70
			this.mongoPort = mongoPort;
71
		}
72

  
73
		public String getMongoCollectionName() {
74
			return mongoCollectionName;
75
		}
76

  
77
		public void setMongoCollectionName(final String mongoCollectionName) {
78
			this.mongoCollectionName = mongoCollectionName;
79
		}
80

  
81
		public String getMongoDbName() {
82
			return mongoDbName;
83
		}
84

  
85
		public void setMongoDbName(final String mongoDbName) {
86
			this.mongoDbName = mongoDbName;
87
		}
88

  
89
		public int getMongoConnectionsPerHost() {
90
			return mongoConnectionsPerHost;
91
		}
92

  
93
		public void setMongoConnectionsPerHost(final int mongoConnectionsPerHost) {
94
			this.mongoConnectionsPerHost = mongoConnectionsPerHost;
95
		}
96

  
97
		public int getMongoQueryLimit() {
98
			return mongoQueryLimit;
99
		}
100

  
101
		public void setMongoQueryLimit(final int mongoQueryLimit) {
102
			this.mongoQueryLimit = mongoQueryLimit;
103
		}
104
	}
105

  
106
	public static class Project {
107

  
108
		private int flushSize;
109
		private String tsvFields;
110
		private Resource projectsFundingQueryTemplate;
111
		private Resource dspaceTemplate;
112
		private Resource dspaceHeadTemplate;
113
		private Resource dspaceTailTemplate;
114
		private Resource eprintsTemplate;
115

  
116
		public int getFlushSize() {
117
			return flushSize;
118
		}
119

  
120
		public void setFlushSize(final int flushSize) {
121
			this.flushSize = flushSize;
122
		}
123

  
124
		public String getTsvFields() {
125
			return tsvFields;
126
		}
127

  
128
		public void setTsvFields(final String tsvFields) {
129
			this.tsvFields = tsvFields;
130
		}
131

  
132
		public Resource getProjectsFundingQueryTemplate() {
133
			return projectsFundingQueryTemplate;
134
		}
135

  
136
		public void setProjectsFundingQueryTemplate(final Resource projectsFundingQueryTemplate) {
137
			this.projectsFundingQueryTemplate = projectsFundingQueryTemplate;
138
		}
139

  
140
		public Resource getDspaceTemplate() {
141
			return dspaceTemplate;
142
		}
143

  
144
		public void setDspaceTemplate(final Resource dspaceTemplate) {
145
			this.dspaceTemplate = dspaceTemplate;
146
		}
147

  
148
		public Resource getDspaceHeadTemplate() {
149
			return dspaceHeadTemplate;
150
		}
151

  
152
		public void setDspaceHeadTemplate(final Resource dspaceHeadTemplate) {
153
			this.dspaceHeadTemplate = dspaceHeadTemplate;
154
		}
155

  
156
		public Resource getDspaceTailTemplate() {
157
			return dspaceTailTemplate;
158
		}
159

  
160
		public void setDspaceTailTemplate(final Resource dspaceTailTemplate) {
161
			this.dspaceTailTemplate = dspaceTailTemplate;
162
		}
163

  
164
		public Resource getEprintsTemplate() {
165
			return eprintsTemplate;
166
		}
167

  
168
		public void setEprintsTemplate(final Resource eprintsTemplate) {
169
			this.eprintsTemplate = eprintsTemplate;
170
		}
171
	}
172

  
173
	public static class Jdbc {
174

  
175
		// JDBC
176
		@Value("${spring.datasource.driverClassName}")
177
		private String driverClassName;
178

  
179
		private String url;
180
		private String user;
181
		private String pwd;
182
		private int minIdle;
183
		private int maxidle;
184
		private int maxRows;
185

  
186
		public String getDriverClassName() {
187
			return driverClassName;
188
		}
189

  
190
		public String getUrl() {
191
			return url;
192
		}
193

  
194
		public void setUrl(final String url) {
195
			this.url = url;
196
		}
197

  
198
		public String getUser() {
199
			return user;
200
		}
201

  
202
		public void setUser(final String user) {
203
			this.user = user;
204
		}
205

  
206
		public String getPwd() {
207
			return pwd;
208
		}
209

  
210
		public void setPwd(final String pwd) {
211
			this.pwd = pwd;
212
		}
213

  
214
		public int getMinIdle() {
215
			return minIdle;
216
		}
217

  
218
		public void setMinIdle(final int minIdle) {
219
			this.minIdle = minIdle;
220
		}
221

  
222
		public int getMaxidle() {
223
			return maxidle;
224
		}
225

  
226
		public void setMaxidle(final int maxidle) {
227
			this.maxidle = maxidle;
228
		}
229

  
230
		public int getMaxRows() {
231
			return maxRows;
232
		}
233

  
234
		public void setMaxRows(final int maxRows) {
235
			this.maxRows = maxRows;
236
		}
237
	}
238

  
239
	public static class Swagger {
240
		private String apiTitle;
241
		private String apiDescription;
242
		private String apiLicense;
243
		private String apiLicenseUrl;
244
		private String apiContactName;
245
		private String apiContactUrl;
246
		private String apiContactEmail;
247

  
248
		public String getApiTitle() {
249
			return apiTitle;
250
		}
251

  
252
		public void setApiTitle(final String apiTitle) {
253
			this.apiTitle = apiTitle;
254
		}
255

  
256
		public String getApiDescription() {
257
			return apiDescription;
258
		}
259

  
260
		public void setApiDescription(final String apiDescription) {
261
			this.apiDescription = apiDescription;
262
		}
263

  
264
		public String getApiLicense() {
265
			return apiLicense;
266
		}
267

  
268
		public void setApiLicense(final String apiLicense) {
269
			this.apiLicense = apiLicense;
270
		}
271

  
272
		public String getApiLicenseUrl() {
273
			return apiLicenseUrl;
274
		}
275

  
276
		public void setApiLicenseUrl(final String apiLicenseUrl) {
277
			this.apiLicenseUrl = apiLicenseUrl;
278
		}
279

  
280
		public String getApiContactName() {
281
			return apiContactName;
282
		}
283

  
284
		public void setApiContactName(final String apiContactName) {
285
			this.apiContactName = apiContactName;
286
		}
287

  
288
		public String getApiContactUrl() {
289
			return apiContactUrl;
290
		}
291

  
292
		public void setApiContactUrl(final String apiContactUrl) {
293
			this.apiContactUrl = apiContactUrl;
294
		}
295

  
296
		public String getApiContactEmail() {
297
			return apiContactEmail;
298
		}
299

  
300
		public void setApiContactEmail(final String apiContactEmail) {
301
			this.apiContactEmail = apiContactEmail;
302
		}
303
	}
304

  
305
	public static class Vocabularies {
306

  
307
		private String baseUrl;
308

  
309
		private String countriesEndpoint;
310

  
311
		private String datasourceTypologiesEndpoint;
312

  
313
		public String getCountriesEndpoint() {
314
			return countriesEndpoint;
315
		}
316

  
317
		public void setCountriesEndpoint(final String countriesEndpoint) {
318
			this.countriesEndpoint = countriesEndpoint;
319
		}
320

  
321
		public String getBaseUrl() {
322
			return baseUrl;
323
		}
324

  
325
		public void setBaseUrl(final String baseUrl) {
326
			this.baseUrl = baseUrl;
327
		}
328

  
329
		public String getDatasourceTypologiesEndpoint() {
330
			return datasourceTypologiesEndpoint;
331
		}
332

  
333
		public void setDatasourceTypologiesEndpoint(final String datasourceTypologiesEndpoint) {
334
			this.datasourceTypologiesEndpoint = datasourceTypologiesEndpoint;
335
		}
336
	}
337

  
338
	public ClassPathResource getFindSolrIndexUrl() {
339
		return findSolrIndexUrl;
340
	}
341

  
342
	public void setFindSolrIndexUrl(final ClassPathResource findSolrIndexUrl) {
343
		this.findSolrIndexUrl = findSolrIndexUrl;
344
	}
345

  
346
	public ClassPathResource getFindIndexDsInfo() {
347
		return findIndexDsInfo;
348
	}
349

  
350
	public ClassPathResource getFindObjectStore() {
351
		return findObjectStore;
352
	}
353

  
354
	public void setFindObjectStore(final ClassPathResource findObjectStore) {
355
		this.findObjectStore = findObjectStore;
356
	}
357

  
358
	public void setFindIndexDsInfo(final ClassPathResource findIndexDsInfo) {
359
		this.findIndexDsInfo = findIndexDsInfo;
360
	}
361

  
362
	public ClassPathResource getFindFunderContexts() {
363
		return findFunderContexts;
364
	}
365

  
366
	public void setFindFunderContexts(final ClassPathResource findFunderContexts) {
367
		this.findFunderContexts = findFunderContexts;
368
	}
369

  
370
	public ClassPathResource getFindCommunityContexts() {
371
		return findCommunityContexts;
372
	}
373

  
374
	public void setFindCommunityContexts(final ClassPathResource findCommunityContexts) {
375
		this.findCommunityContexts = findCommunityContexts;
376
	}
377

  
378
	public ClassPathResource getGetRepoProfile() {
379
		return getRepoProfile;
380
	}
381

  
382
	public void setGetRepoProfile(final ClassPathResource getRepoProfile) {
383
		this.getRepoProfile = getRepoProfile;
384
	}
385

  
386
	public String getOaf2HBaseWfId() {
387
		return oaf2HBaseWfId;
388
	}
389

  
390
	public void setOaf2HBaseWfId(final String oaf2HBaseWfId) {
391
		this.oaf2HBaseWfId = oaf2HBaseWfId;
392
	}
393

  
394
	public String getIsLookupUrl() {
395
		return isLookupUrl;
396
	}
397

  
398
	public void setIsLookupUrl(final String isLookupUrl) {
399
		this.isLookupUrl = isLookupUrl;
400
	}
401

  
402
	public String getObjectStoreServiceUrl() {
403
		return objectStoreServiceUrl;
404
	}
405

  
406
	public void setObjectStoreServiceUrl(final String objectStoreServiceUrl) {
407
		this.objectStoreServiceUrl = objectStoreServiceUrl;
408
	}
409

  
410
	public String getIsRegistryServiceUrl() {
411
		return isRegistryServiceUrl;
412
	}
413

  
414
	public void setIsRegistryServiceUrl(final String isRegistryServiceUrl) {
415
		this.isRegistryServiceUrl = isRegistryServiceUrl;
416
	}
417

  
418
	public int getRequestWorkers() {
419
		return requestWorkers;
420
	}
421

  
422
	public void setRequestWorkers(final int requestWorkers) {
423
		this.requestWorkers = requestWorkers;
424
	}
425

  
426
	public int getRequestTimeout() {
427
		return requestTimeout;
428
	}
429

  
430
	public void setRequestTimeout(final int requestTimeout) {
431
		this.requestTimeout = requestTimeout;
432
	}
433

  
434
	public Datasource getDatasource() {
435
		return datasource;
436
	}
437

  
438
	public void setDatasource(final Datasource datasource) {
439
		this.datasource = datasource;
440
	}
441

  
442
	public Project getProject() {
443
		return project;
444
	}
445

  
446
	public void setProject(final Project project) {
447
		this.project = project;
448
	}
449

  
450
	public Jdbc getJdbc() {
451
		return jdbc;
452
	}
453

  
454
	public void setJdbc(final Jdbc jdbc) {
455
		this.jdbc = jdbc;
456
	}
457

  
458
	public Swagger getSwaggerDsm() {
459
		return swaggerDsm;
460
	}
461

  
462
	public void setSwaggerDsm(final Swagger swaggerDsm) {
463
		this.swaggerDsm = swaggerDsm;
464
	}
465

  
466
	public Swagger getSwaggerProjects() {
467
		return swaggerProjects;
468
	}
469

  
470
	public void setSwaggerProjects(final Swagger swaggerProjects) {
471
		this.swaggerProjects = swaggerProjects;
472
	}
473

  
474
	public Swagger getSwaggerFunders() {
475
		return swaggerFunders;
476
	}
477

  
478
	public void setSwaggerFunders(final Swagger swaggerFunders) {
479
		this.swaggerFunders = swaggerFunders;
480
	}
481

  
482
	public Swagger getSwaggerCommunities() {
483
		return swaggerCommunities;
484
	}
485

  
486
	public void setSwaggerCommunities(final Swagger swaggerCommunities) {
487
		this.swaggerCommunities = swaggerCommunities;
488
	}
489

  
490
	public Vocabularies getVocabularies() {
491
		return vocabularies;
492
	}
493

  
494
	public void setVocabularies(final Vocabularies vocabularies) {
495
		this.vocabularies = vocabularies;
496
	}
497
}
modules/dnet-openaire-exporter/branches/prod/src/main/java/eu/dnetlib/openaire/vocabularies/Country.java
1
package eu.dnetlib.openaire.vocabularies;
2

  
3
/**
4
 * Created by claudio on 15/09/2017.
5
 */
6
public class Country {
7

  
8
	private String code;
9

  
10
	private String name;
11

  
12
	public Country() {
13
	}
14

  
15
	public Country(final String code, final String name) {
16
		this.code = code;
17
		this.name = name;
18
	}
19

  
20
	public String getCode() {
21
		return code;
22
	}
23

  
24
	public void setCode(final String code) {
25
		this.code = code;
26
	}
27

  
28
	public String getName() {
29
		return name;
30
	}
31

  
32
	public void setName(final String name) {
33
		this.name = name;
34
	}
35
}
modules/dnet-openaire-exporter/branches/prod/src/main/java/eu/dnetlib/openaire/vocabularies/Term.java
1
package eu.dnetlib.openaire.vocabularies;
2

  
3
/**
4
 * Created by claudio on 15/09/2017.
5
 */
6
public class Term {
7
	private String englishName;
8
	private String code;
9

  
10
	public Term() {
11
	}
12

  
13
	public String getEnglishName() {
14
		return englishName;
15
	}
16

  
17
	public void setEnglishName(final String englishName) {
18
		this.englishName = englishName;
19
	}
20

  
21
	public String getCode() {
22
		return code;
23
	}
24

  
25
	public void setCode(final String code) {
26
		this.code = code;
27
	}
28

  
29
}
modules/dnet-openaire-exporter/branches/prod/src/main/java/eu/dnetlib/openaire/vocabularies/Vocabulary.java
1
package eu.dnetlib.openaire.vocabularies;
2

  
3
import java.util.List;
4
import java.util.Map;
5

  
6
import com.google.common.collect.Maps;
7
import org.apache.commons.logging.Log;
8
import org.apache.commons.logging.LogFactory;
9

  
10
/**
11
 * Created by claudio on 15/09/2017.
12
 */
13
public class Vocabulary {
14

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff