19 package org.turro.students.command;
21 import java.io.IOException;
22 import org.turro.action.AbstractInterceptor;
23 import org.turro.action.Parameters;
24 import org.turro.annotation.ElephantInterceptor;
25 import org.turro.collections.KeyValueMap;
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;
30 import org.turro.students.menu.StudentsMenu;
41 if(
"challenge".equals(goTo)) {
43 if(Strings.isBlank(path)) {
44 path =
"/user/challenges";
47 .
add(
"item", kvm.get(
"challengeId"))
49 constructor.redirect(path +
"?item=" + kvm.get(Long.class,
"challengeId"));
57 if(
"challenge".equals(goTo)) {
Parameters add(String key, Object value)
static Parameters path(String path)
boolean isInRole(String role)
static Application getApplication()
static String getEntityWebContext(String path)
boolean doExecuteWeb(IConstructor constructor, String goTo, KeyValueMap kvm)
boolean doExecuteApp(Application application, String goTo, KeyValueMap kvm)