1 |
42161
|
michele.ar
|
package eu.dnetlib.efg.backlinks;
|
2 |
42098
|
sandro.lab
|
|
3 |
|
|
import java.util.Map;
|
4 |
|
|
|
5 |
42161
|
michele.ar
|
import org.springframework.beans.factory.annotation.Autowired;
|
6 |
|
|
|
7 |
42098
|
sandro.lab
|
import eu.dnetlib.data.mdstore.modular.action.DoneCallback;
|
8 |
|
|
import eu.dnetlib.data.mdstore.modular.action.MDStorePlugin;
|
9 |
|
|
import eu.dnetlib.data.mdstore.modular.connector.MDStoreDao;
|
10 |
|
|
import eu.dnetlib.rmi.data.MDStoreServiceException;
|
11 |
|
|
|
12 |
|
|
/**
|
13 |
|
|
* Created by Sandro La Bruzzo on 12/2/15.
|
14 |
|
|
*/
|
15 |
|
|
|
16 |
42161
|
michele.ar
|
public class BackLinksPlugin implements MDStorePlugin {
|
17 |
42098
|
sandro.lab
|
|
18 |
|
|
@Autowired
|
19 |
42161
|
michele.ar
|
private MongoBuildBacklinks mongoBuildBacklinks;
|
20 |
42098
|
sandro.lab
|
|
21 |
|
|
@Override
|
22 |
42161
|
michele.ar
|
public void run(final MDStoreDao dao, final Map<String, String> params, final DoneCallback doneCallback) throws MDStoreServiceException {
|
23 |
42098
|
sandro.lab
|
|
24 |
|
|
final String id = params.get("mdStoreId");
|
25 |
42161
|
michele.ar
|
this.mongoBuildBacklinks.process(id, doneCallback);
|
26 |
42098
|
sandro.lab
|
|
27 |
|
|
}
|
28 |
|
|
}
|