Revision 52934
Added by Miriam Baglioni over 5 years ago
modules/dnet-openaireplus-workflows/branches/solr7/src/test/resources/log4j.properties | ||
---|---|---|
1 | 1 |
### Root Level ### |
2 | 2 |
log4j.rootLogger=WARN, CONSOLE |
3 |
### Configuration for the CONSOLE appender ###
|
|
3 |
### BulkTaggingInverseMaps for the CONSOLE appender ###
|
|
4 | 4 |
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender |
5 | 5 |
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout |
6 | 6 |
log4j.appender.CONSOLE.layout.ConversionPattern=[%-5p] %d %c - %m%n |
modules/dnet-openaireplus-workflows/branches/solr7/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/bulktag/Configuration.java | ||
---|---|---|
1 |
package eu.dnetlib.msro.openaireplus.workflows.nodes.bulktag; |
|
2 |
|
|
3 |
import java.util.ArrayList; |
|
4 |
import java.util.List; |
|
5 |
import com.google.gson.Gson; |
|
6 |
|
|
7 |
/** |
|
8 |
* Created by miriam on 01/08/2018. |
|
9 |
*/ |
|
10 |
public class Configuration { |
|
11 |
private List<Community> community; |
|
12 |
|
|
13 |
|
|
14 |
public List<Community> getCommunity() { |
|
15 |
return community; |
|
16 |
} |
|
17 |
|
|
18 |
public void setCommunity(List<Community> community) { |
|
19 |
this.community = community; |
|
20 |
} |
|
21 |
|
|
22 |
public void addCommunity(Community c){ |
|
23 |
if(community == null){ |
|
24 |
community = new ArrayList<>(); |
|
25 |
} |
|
26 |
if(c != null) |
|
27 |
community.add(c); |
|
28 |
} |
|
29 |
|
|
30 |
public String getTaggingConfiguration(){ |
|
31 |
final Gson g = new Gson(); |
|
32 |
|
|
33 |
return g.toJson(this); |
|
34 |
} |
|
35 |
|
|
36 |
} |
modules/dnet-openaireplus-workflows/branches/solr7/src/main/resources/eu/dnetlib/msro/openaireplus/workflows/applicationContext-msro-openaire-nodes.xml | ||
---|---|---|
309 | 309 |
|
310 | 310 |
<bean id="wfNodeLoadBulkTaggingConfiguration" |
311 | 311 |
class="eu.dnetlib.msro.openaireplus.workflows.nodes.bulktag.LoadBulkTaggingConfigurationJobNode" |
312 |
p:xquery="${dnet.openaire.bulktag.xquery}" |
|
312 | 313 |
scope="prototype"/> |
313 | 314 |
|
314 | 315 |
|
Also available in: Unified diff
refactoring