Revision 42765
Added by Sandro La Bruzzo almost 8 years ago
OAIDropStoreJobNode.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.msro.workflows.nodes.oai; |
2 | 2 |
|
3 |
import org.apache.commons.lang3.StringUtils; |
|
4 |
|
|
5 | 3 |
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob; |
6 | 4 |
import eu.dnetlib.msro.workflows.procs.Env; |
7 | 5 |
import eu.dnetlib.msro.workflows.procs.Token; |
6 |
import org.apache.commons.lang3.StringUtils; |
|
8 | 7 |
|
9 | 8 |
public class OAIDropStoreJobNode extends AbstractOAIJobNode { |
10 | 9 |
|
... | ... | |
13 | 12 |
private String setSpecParam; |
14 | 13 |
private String setSpec; |
15 | 14 |
|
15 |
private String oai_dbName; |
|
16 |
|
|
16 | 17 |
@Override |
17 | 18 |
void completePrepareJob(final BlackboardJob job, final Token token) { |
18 | 19 |
job.setAction("DROP_STORE"); |
19 | 20 |
job.getParameters().put("format", token.getEnv().getAttribute(this.formatParam, String.class)); |
20 | 21 |
job.getParameters().put("layout", token.getEnv().getAttribute(this.layoutParam, String.class)); |
21 | 22 |
job.getParameters().put("interpretation", token.getEnv().getAttribute(this.interpretationParam, String.class)); |
23 |
job.getParameters().put("oai_dbName", getOai_dbName()); |
|
22 | 24 |
final String set = getTheSetName(token.getEnv()); |
23 | 25 |
if (StringUtils.isNotBlank(set)) { |
24 | 26 |
job.getParameters().put("set", set); |
... | ... | |
34 | 36 |
|
35 | 37 |
} |
36 | 38 |
|
39 |
public String getOai_dbName() { |
|
40 |
|
|
41 |
return oai_dbName; |
|
42 |
} |
|
43 |
|
|
44 |
public void setOai_dbName(final String oai_dbName) { |
|
45 |
this.oai_dbName = oai_dbName; |
|
46 |
} |
|
47 |
|
|
37 | 48 |
public String getFormatParam() { |
38 | 49 |
return this.formatParam; |
39 | 50 |
} |
Also available in: Unified diff
fixed bug