1
|
package eu.dnetlib.data.transformation.ui;
|
2
|
|
3
|
import javax.annotation.Resource;
|
4
|
import javax.servlet.http.HttpServletRequest;
|
5
|
import javax.servlet.http.HttpServletResponse;
|
6
|
|
7
|
import org.springframework.ui.ModelMap;
|
8
|
|
9
|
import eu.dnetlib.functionality.modular.ui.ModuleEntryPoint;
|
10
|
|
11
|
public class TransformEntryPointController extends ModuleEntryPoint {
|
12
|
|
13
|
@Resource
|
14
|
private TransformerUtils transformerUtils;
|
15
|
|
16
|
@Override
|
17
|
protected void initialize(final ModelMap map, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
|
18
|
map.addAttribute("rules", transformerUtils.obtainRuleProfiles(null));
|
19
|
}
|
20
|
|
21
|
}
|