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