Project

General

Profile

1
package eu.dnetlib.index.action;
2

    
3
import eu.dnetlib.enabling.tools.blackboard.BlackboardJob;
4
import eu.dnetlib.enabling.tools.blackboard.BlackboardServerAction;
5
import eu.dnetlib.enabling.tools.blackboard.BlackboardServerHandler;
6
import eu.dnetlib.index.IndexModularService;
7
import org.springframework.beans.factory.annotation.Autowired;
8

    
9
/**
10
 * The Class that implements Identify Action.
11
 */
12
public class IdentifyAction extends AbstractIndexAction implements BlackboardServerAction<IndexAction> {
13

    
14
	/**
15
	 * The index service.
16
	 */
17
	@Autowired
18
	private IndexModularService indexService;
19

    
20
	/**
21
	 * {@inheritDoc}
22
	 *
23
	 * @see BlackboardServerAction#execute(BlackboardServerHandler,
24
	 * BlackboardJob)
25
	 */
26
	@Override
27
	public void execute(final BlackboardServerHandler handler, final BlackboardJob job) throws Exception {
28
		job.getParameters().put(BBParam.SERVICE_ID, indexService.identify());
29
	}
30

    
31
}
(7-7/8)