1
|
package eu.dnetlib.msro.workflows.nodes.hadoop;
|
2
|
|
3
|
import eu.dnetlib.msro.workflows.graph.Arc;
|
4
|
import eu.dnetlib.msro.workflows.procs.Env;
|
5
|
import org.springframework.beans.factory.annotation.Required;
|
6
|
|
7
|
public class PrepareIISPreprocessingParamsJobNode extends PrepareIISParams {
|
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 Env env) throws Exception {
|
27
|
super.prepare(env);
|
28
|
|
29
|
env.setAttribute(getMdStoreWosParam(), getProfileId(getXqueryWosMDStore()));
|
30
|
env.setAttribute(getDatabaseServiceLocationParam(), getServiceEndpoint(getXqueryDatabaseService()));
|
31
|
|
32
|
env.setAttribute(getDataciteObjectStoreParam(), getFilteredObjectStoreCSV(getXqueryDataciteObjectStore()));
|
33
|
env.setAttribute(getWosObjectStorePlaintextParam(), getProfileId(getXqueryWosObjectStore()));
|
34
|
|
35
|
return Arc.DEFAULT_ARC;
|
36
|
}
|
37
|
|
38
|
public String getXqueryWosMDStore() {
|
39
|
return this.xqueryWosMDStore;
|
40
|
}
|
41
|
|
42
|
@Required
|
43
|
public void setXqueryWosMDStore(final String xqueryWosMDStore) {
|
44
|
this.xqueryWosMDStore = xqueryWosMDStore;
|
45
|
}
|
46
|
|
47
|
public String getMdStoreWosParam() {
|
48
|
return this.mdStoreWosParam;
|
49
|
}
|
50
|
|
51
|
public void setMdStoreWosParam(final String mdStoreWosParam) {
|
52
|
this.mdStoreWosParam = mdStoreWosParam;
|
53
|
}
|
54
|
|
55
|
public String getXqueryDatabaseService() {
|
56
|
return this.xqueryDatabaseService;
|
57
|
}
|
58
|
|
59
|
@Required
|
60
|
public void setXqueryDatabaseService(final String xqueryDatabaseService) {
|
61
|
this.xqueryDatabaseService = xqueryDatabaseService;
|
62
|
}
|
63
|
|
64
|
public String getDatabaseServiceLocationParam() {
|
65
|
return this.databaseServiceLocationParam;
|
66
|
}
|
67
|
|
68
|
public void setDatabaseServiceLocationParam(final String databaseServiceLocationParam) {
|
69
|
this.databaseServiceLocationParam = databaseServiceLocationParam;
|
70
|
}
|
71
|
|
72
|
public String getWosObjectStorePlaintextParam() {
|
73
|
return this.wosObjectStorePlaintextParam;
|
74
|
}
|
75
|
|
76
|
public void setWosObjectStorePlaintextParam(final String wosObjectStorePlaintextParam) {
|
77
|
this.wosObjectStorePlaintextParam = wosObjectStorePlaintextParam;
|
78
|
}
|
79
|
|
80
|
public String getXqueryWosObjectStore() {
|
81
|
return this.xqueryWosObjectStore;
|
82
|
}
|
83
|
|
84
|
@Required
|
85
|
public void setXqueryWosObjectStore(final String xqueryWosObjectStore) {
|
86
|
this.xqueryWosObjectStore = xqueryWosObjectStore;
|
87
|
}
|
88
|
|
89
|
public String getXqueryDataciteObjectStore() {
|
90
|
return this.xqueryDataciteObjectStore;
|
91
|
}
|
92
|
|
93
|
@Required
|
94
|
public void setXqueryDataciteObjectStore(final String xqueryDataciteObjectStore) {
|
95
|
this.xqueryDataciteObjectStore = xqueryDataciteObjectStore;
|
96
|
}
|
97
|
|
98
|
public String getDataciteObjectStoreParam() {
|
99
|
return this.dataciteObjectStoreParam;
|
100
|
}
|
101
|
|
102
|
public void setDataciteObjectStoreParam(final String dataciteObjectStoreParam) {
|
103
|
this.dataciteObjectStoreParam = dataciteObjectStoreParam;
|
104
|
}
|
105
|
|
106
|
}
|