1 |
26600
|
sandro.lab
|
package eu.dnetlib.functionality.modular.ui.workflows.menu;
|
2 |
|
|
|
3 |
|
|
import java.io.UnsupportedEncodingException;
|
4 |
|
|
import java.net.URLEncoder;
|
5 |
|
|
|
6 |
|
|
import eu.dnetlib.functionality.modular.ui.MenuEntry;
|
7 |
|
|
|
8 |
|
|
public class WorkflowSectionEntryPoint extends MenuEntry {
|
9 |
|
|
|
10 |
|
|
public WorkflowSectionEntryPoint(String s, int order) {
|
11 |
|
|
setTitle(s);
|
12 |
|
|
setMenu(s);
|
13 |
|
|
setDescription(s);
|
14 |
|
|
setOrder(order);
|
15 |
|
|
}
|
16 |
|
|
|
17 |
|
|
@Override
|
18 |
|
|
public String getRelativeUrl() {
|
19 |
|
|
try {
|
20 |
40634
|
michele.ar
|
return "/ui/workflows.do#/list/" + URLEncoder.encode(getMenu(), "UTF-8");
|
21 |
26600
|
sandro.lab
|
} catch (UnsupportedEncodingException e) {
|
22 |
|
|
return "javascript:void(0)";
|
23 |
|
|
}
|
24 |
|
|
}
|
25 |
|
|
|
26 |
|
|
}
|