Project

General

Profile

« Previous | Next » 

Revision 45455

Included changes about the CQL translation as in most recent version of cnr-cql-utils of DNet40 + refactoring of OAI parameters

View differences:

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

  
3
import org.springframework.beans.factory.annotation.Autowired;
4

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

  
9 9
public class RefreshConfigAction extends AbstractOAIStoreAction {
10 10

  
11 11
	@Autowired
12
	private OAISetHelper oaiSetHelper;
12
	private OAIHelper oaiHelper;
13 13

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

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

  
25
	public void setOaiSetHelper(final OAISetHelper oaiSetHelper) {
26
		this.oaiSetHelper = oaiSetHelper;
25
	public void setOaiHelper(final OAIHelper oaiSetHelper) {
26
		this.oaiHelper = oaiSetHelper;
27 27
	}
28 28

  
29 29
}

Also available in: Unified diff