1
|
package eu.dnetlib.msro.workflows.nodes.oai;
|
2
|
|
3
|
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob;
|
4
|
import eu.dnetlib.msro.workflows.procs.Token;
|
5
|
import eu.dnetlib.oai.utils.OAIParameterNames;
|
6
|
import eu.dnetlib.rmi.provision.OAIStoreActions;
|
7
|
|
8
|
public class OAISetsCountJobNode extends AbstractOAIJobNode {
|
9
|
|
10
|
private String configuredOnly;
|
11
|
|
12
|
@Override
|
13
|
void completePrepareJob(final BlackboardJob job, final Token token) {
|
14
|
job.setAction(OAIStoreActions.COUNT_SETS.toString());
|
15
|
job.getParameters().put(OAIParameterNames.OAI_CONFIGURED_SETS_ONLY, getConfiguredOnly());
|
16
|
}
|
17
|
|
18
|
public String getConfiguredOnly() {
|
19
|
return this.configuredOnly;
|
20
|
}
|
21
|
|
22
|
public void setConfiguredOnly(final String configuredOnly) {
|
23
|
this.configuredOnly = configuredOnly;
|
24
|
}
|
25
|
|
26
|
}
|