1 |
43444
|
sandro.lab
|
package eu.dnetlib.msro.workflows.nodes.actionmanager;
|
2 |
|
|
|
3 |
|
|
import javax.annotation.Resource;
|
4 |
|
|
|
5 |
|
|
import eu.dnetlib.enabling.locators.UniqueServiceLocator;
|
6 |
|
|
import eu.dnetlib.msro.workflows.graph.Arc;
|
7 |
|
|
import eu.dnetlib.msro.workflows.nodes.SimpleJobNode;
|
8 |
|
|
import eu.dnetlib.msro.workflows.procs.Env;
|
9 |
|
|
import eu.dnetlib.rmi.enabling.ISRegistryService;
|
10 |
|
|
import org.apache.commons.logging.Log;
|
11 |
|
|
import org.apache.commons.logging.LogFactory;
|
12 |
|
|
import org.springframework.beans.factory.annotation.Required;
|
13 |
|
|
|
14 |
|
|
public class CleanActionSetsProfileJobNode extends SimpleJobNode {
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
|
|
* logger.
|
18 |
|
|
*/
|
19 |
|
|
private static final Log log = LogFactory.getLog(CleanActionSetsProfileJobNode.class);
|
20 |
|
|
|
21 |
|
|
@Resource
|
22 |
|
|
private UniqueServiceLocator serviceLocator;
|
23 |
|
|
|
24 |
|
|
private String xupdate;
|
25 |
|
|
|
26 |
|
|
@Override
|
27 |
|
|
protected String execute(final Env env) throws Exception {
|
28 |
|
|
log.info("updating Action Sets profiles: " + getXupdate());
|
29 |
|
|
this.serviceLocator.getService(ISRegistryService.class).executeXUpdate(getXupdate());
|
30 |
|
|
return Arc.DEFAULT_ARC;
|
31 |
|
|
}
|
32 |
|
|
|
33 |
|
|
public String getXupdate() {
|
34 |
|
|
return this.xupdate;
|
35 |
|
|
}
|
36 |
|
|
|
37 |
|
|
@Required
|
38 |
|
|
public void setXupdate(final String xupdate) {
|
39 |
|
|
this.xupdate = xupdate;
|
40 |
|
|
}
|
41 |
|
|
|
42 |
|
|
}
|