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
|
@Deprecated
|
8
|
public class PrepareIISPreprocessingParamsJobNode extends PrepareIISParams {
|
9
|
|
10
|
private String xqueryWosMDStore;
|
11
|
|
12
|
private String mdStoreWosParam = "import_wos_mdstore_id";
|
13
|
|
14
|
private String xqueryDatabaseService;
|
15
|
|
16
|
private String databaseServiceLocationParam = "import_database_service_location";
|
17
|
|
18
|
private String xqueryDataciteObjectStore;
|
19
|
|
20
|
private String dataciteObjectStoreParam = "import_content_datacite_objectstores_csv";
|
21
|
|
22
|
private String xqueryWosObjectStore;
|
23
|
|
24
|
private String wosObjectStorePlaintextParam = "import_content_wos_plaintext_objectstores_csv";
|
25
|
|
26
|
@Override
|
27
|
protected String execute(final NodeToken token) throws Exception {
|
28
|
super.prepare(token);
|
29
|
|
30
|
token.getEnv().setAttribute(getMdStoreWosParam(), getProfileId(getXqueryWosMDStore()));
|
31
|
token.getEnv().setAttribute(getDatabaseServiceLocationParam(), getServiceEndpoint(getXqueryDatabaseService()));
|
32
|
|
33
|
token.getEnv().setAttribute(getDataciteObjectStoreParam(), getFilteredObjectStoreCSV(getXqueryDataciteObjectStore()));
|
34
|
token.getEnv().setAttribute(getWosObjectStorePlaintextParam(), getProfileId(getXqueryWosObjectStore()));
|
35
|
|
36
|
return Arc.DEFAULT_ARC;
|
37
|
}
|
38
|
|
39
|
public String getXqueryWosMDStore() {
|
40
|
return xqueryWosMDStore;
|
41
|
}
|
42
|
|
43
|
@Required
|
44
|
public void setXqueryWosMDStore(final String xqueryWosMDStore) {
|
45
|
this.xqueryWosMDStore = xqueryWosMDStore;
|
46
|
}
|
47
|
|
48
|
public String getMdStoreWosParam() {
|
49
|
return mdStoreWosParam;
|
50
|
}
|
51
|
|
52
|
public void setMdStoreWosParam(final String mdStoreWosParam) {
|
53
|
this.mdStoreWosParam = mdStoreWosParam;
|
54
|
}
|
55
|
|
56
|
public String getXqueryDatabaseService() {
|
57
|
return xqueryDatabaseService;
|
58
|
}
|
59
|
|
60
|
@Required
|
61
|
public void setXqueryDatabaseService(final String xqueryDatabaseService) {
|
62
|
this.xqueryDatabaseService = xqueryDatabaseService;
|
63
|
}
|
64
|
|
65
|
public String getDatabaseServiceLocationParam() {
|
66
|
return databaseServiceLocationParam;
|
67
|
}
|
68
|
|
69
|
public void setDatabaseServiceLocationParam(final String databaseServiceLocationParam) {
|
70
|
this.databaseServiceLocationParam = databaseServiceLocationParam;
|
71
|
}
|
72
|
|
73
|
public String getWosObjectStorePlaintextParam() {
|
74
|
return wosObjectStorePlaintextParam;
|
75
|
}
|
76
|
|
77
|
public void setWosObjectStorePlaintextParam(final String wosObjectStorePlaintextParam) {
|
78
|
this.wosObjectStorePlaintextParam = wosObjectStorePlaintextParam;
|
79
|
}
|
80
|
|
81
|
public String getXqueryWosObjectStore() {
|
82
|
return xqueryWosObjectStore;
|
83
|
}
|
84
|
|
85
|
@Required
|
86
|
public void setXqueryWosObjectStore(final String xqueryWosObjectStore) {
|
87
|
this.xqueryWosObjectStore = xqueryWosObjectStore;
|
88
|
}
|
89
|
|
90
|
public String getXqueryDataciteObjectStore() {
|
91
|
return xqueryDataciteObjectStore;
|
92
|
}
|
93
|
|
94
|
@Required
|
95
|
public void setXqueryDataciteObjectStore(final String xqueryDataciteObjectStore) {
|
96
|
this.xqueryDataciteObjectStore = xqueryDataciteObjectStore;
|
97
|
}
|
98
|
|
99
|
public String getDataciteObjectStoreParam() {
|
100
|
return dataciteObjectStoreParam;
|
101
|
}
|
102
|
|
103
|
public void setDataciteObjectStoreParam(final String dataciteObjectStoreParam) {
|
104
|
this.dataciteObjectStoreParam = dataciteObjectStoreParam;
|
105
|
}
|
106
|
|
107
|
}
|