Project

General

Profile

« Previous | Next » 

Revision 42184

oai import

View differences:

RefreshConfigAction.java
1 1
package eu.dnetlib.oai.actions;
2 2

  
3
import eu.dnetlib.data.oai.store.conf.OAISetHelper;
3
import org.springframework.beans.factory.annotation.Autowired;
4

  
4 5
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob;
5 6
import eu.dnetlib.enabling.tools.blackboard.BlackboardServerHandler;
6
import org.springframework.beans.factory.annotation.Autowired;
7
import eu.dnetlib.oai.conf.OAISetHelper;
7 8

  
8 9
public class RefreshConfigAction extends AbstractOAIStoreAction {
9 10

  
......
12 13

  
13 14
	@Override
14 15
	public void execute(final BlackboardServerHandler handler, final BlackboardJob job) throws Exception {
15
		String dbName = job.getParameters().get("oai_dbName");
16
		oaiSetHelper.loadConfiguration(dbName);
16
		final String dbName = job.getParameters().get("oai_dbName");
17
		this.oaiSetHelper.loadConfiguration(dbName);
17 18
		handler.done(job);
18 19
	}
19 20

  
20 21
	public OAISetHelper getOaiSetHelper() {
21
		return oaiSetHelper;
22
		return this.oaiSetHelper;
22 23
	}
23 24

  
24 25
	public void setOaiSetHelper(final OAISetHelper oaiSetHelper) {

Also available in: Unified diff