Project

General

Profile

1
package eu.dnetlib.msro.openaireplus.workflows.nodes;
2

    
3
import com.googlecode.sarasvati.Arc;
4
import com.googlecode.sarasvati.NodeToken;
5
import org.springframework.beans.factory.annotation.Required;
6

    
7
public class PrepareIISPreprocessingParamsV2JobNode extends PrepareIISParamsV2 {
8

    
9
	private String xqueryWosMDStore;
10

    
11
	private String mdStoreWosParam = "import_wos_mdstore_id";
12

    
13
	private String xqueryDatabaseService;
14

    
15
	private String databaseServiceLocationParam = "import_database_service_location";
16

    
17
	private String xqueryDataciteObjectStore;
18

    
19
	private String dataciteObjectStoreParam = "import_content_datacite_objectstores_csv";
20

    
21
	private String xqueryWosObjectStore;
22

    
23
	private String wosObjectStorePlaintextParam = "import_content_wos_plaintext_objectstores_csv";
24

    
25
	@Override
26
	protected String execute(final NodeToken token) throws Exception {
27
		super.prepare(token);
28

    
29
		token.getEnv().setAttribute(getMdStoreWosParam(), getProfileId(getXqueryWosMDStore()));
30
		token.getEnv().setAttribute(getDatabaseServiceLocationParam(), getServiceEndpoint(getXqueryDatabaseService()));
31

    
32
		token.getEnv().setAttribute(getDataciteObjectStoreParam(), getFilteredObjectStoreCSV(getXqueryDataciteObjectStore()));
33
		token.getEnv().setAttribute(getWosObjectStorePlaintextParam(), getProfileId(getXqueryWosObjectStore()));
34

    
35
		return Arc.DEFAULT_ARC;
36
	}
37

    
38
	public String getXqueryWosMDStore() {
39
		return xqueryWosMDStore;
40
	}
41

    
42
	@Required
43
	public void setXqueryWosMDStore(final String xqueryWosMDStore) {
44
		this.xqueryWosMDStore = xqueryWosMDStore;
45
	}
46

    
47
	public String getMdStoreWosParam() {
48
		return mdStoreWosParam;
49
	}
50

    
51
	public void setMdStoreWosParam(final String mdStoreWosParam) {
52
		this.mdStoreWosParam = mdStoreWosParam;
53
	}
54

    
55
	public String getXqueryDatabaseService() {
56
		return xqueryDatabaseService;
57
	}
58

    
59
	@Required
60
	public void setXqueryDatabaseService(final String xqueryDatabaseService) {
61
		this.xqueryDatabaseService = xqueryDatabaseService;
62
	}
63

    
64
	public String getDatabaseServiceLocationParam() {
65
		return databaseServiceLocationParam;
66
	}
67

    
68
	public void setDatabaseServiceLocationParam(final String databaseServiceLocationParam) {
69
		this.databaseServiceLocationParam = databaseServiceLocationParam;
70
	}
71

    
72
	public String getWosObjectStorePlaintextParam() {
73
		return wosObjectStorePlaintextParam;
74
	}
75

    
76
	public void setWosObjectStorePlaintextParam(final String wosObjectStorePlaintextParam) {
77
		this.wosObjectStorePlaintextParam = wosObjectStorePlaintextParam;
78
	}
79

    
80
	public String getXqueryWosObjectStore() {
81
		return xqueryWosObjectStore;
82
	}
83

    
84
	@Required
85
	public void setXqueryWosObjectStore(final String xqueryWosObjectStore) {
86
		this.xqueryWosObjectStore = xqueryWosObjectStore;
87
	}
88

    
89
	public String getXqueryDataciteObjectStore() {
90
		return xqueryDataciteObjectStore;
91
	}
92

    
93
	@Required
94
	public void setXqueryDataciteObjectStore(final String xqueryDataciteObjectStore) {
95
		this.xqueryDataciteObjectStore = xqueryDataciteObjectStore;
96
	}
97

    
98
	public String getDataciteObjectStoreParam() {
99
		return dataciteObjectStoreParam;
100
	}
101

    
102
	public void setDataciteObjectStoreParam(final String dataciteObjectStoreParam) {
103
		this.dataciteObjectStoreParam = dataciteObjectStoreParam;
104
	}
105

    
106
}
(17-17/24)