18 package org.turro.dossier.command;
20 import java.io.IOException;
21 import org.turro.action.AbstractInterceptor;
22 import org.turro.action.Parameters;
23 import org.turro.annotation.ElephantInterceptor;
24 import org.turro.collections.KeyValueMap;
25 import org.turro.dossier.zul.menu.DossierMenu;
26 import org.turro.elephant.context.Application;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.elephant.context.IConstructor;
29 import org.turro.string.Strings;
40 if(
"dossier".equals(goTo)) {
42 if(Strings.isBlank(path)) {
43 path =
"/user/mydossiers";
46 .
add(
"item", kvm.get(
"dossierId"))
48 constructor.redirect(path +
"?item=" + kvm.get(Long.class,
"dossierId"));
50 }
else if(
"project".equals(goTo)) {
52 if(Strings.isBlank(path)) {
53 path =
"/user/myprojects";
56 .
add(
"item", kvm.get(
"projectId"))
59 }
else if(
"axproject".equals(goTo)) {
61 if(Strings.isBlank(path)) {
63 if(!Strings.isBlank(path)) {
64 path = path +
"/alliance";
67 if(Strings.isBlank(path)) {
68 path =
"/user/alliance/projects";
71 .
add(
"serverDomain", kvm.get(
"server"))
72 .
add(
"service",
"/axserver")
73 .
add(
"item", kvm.get(
"axprojectId"))
82 if(
"issue".equals(goTo)) {
87 }
else if(
"dossier".equals(goTo)) {
92 }
else if(
"project".equals(goTo)) {
97 }
else if(
"myissues".equals(goTo)) {
Parameters add(String key, Object value)
static Parameters path(String path)
boolean doExecuteWeb(IConstructor constructor, String goTo, KeyValueMap kvm)
boolean doExecuteApp(Application application, String goTo, KeyValueMap kvm)
boolean isInRole(String role)
static Application getApplication()
static String getEntityWebContext(String path)