1
|
package eu.dnetlib.oai.actions;
|
2
|
|
3
|
import eu.dnetlib.data.oai.store.conf.OAISetHelper;
|
4
|
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob;
|
5
|
import eu.dnetlib.enabling.tools.blackboard.BlackboardServerHandler;
|
6
|
import org.springframework.beans.factory.annotation.Autowired;
|
7
|
|
8
|
public class RefreshConfigAction extends AbstractOAIStoreAction {
|
9
|
|
10
|
@Autowired
|
11
|
private OAISetHelper oaiSetHelper;
|
12
|
|
13
|
@Override
|
14
|
public void execute(final BlackboardServerHandler handler, final BlackboardJob job) throws Exception {
|
15
|
String dbName = job.getParameters().get("oai_dbName");
|
16
|
oaiSetHelper.loadConfiguration(dbName);
|
17
|
handler.done(job);
|
18
|
}
|
19
|
|
20
|
public OAISetHelper getOaiSetHelper() {
|
21
|
return oaiSetHelper;
|
22
|
}
|
23
|
|
24
|
public void setOaiSetHelper(final OAISetHelper oaiSetHelper) {
|
25
|
this.oaiSetHelper = oaiSetHelper;
|
26
|
}
|
27
|
|
28
|
}
|