19 package org.turro.elephant.user.menu;
21 import javax.servlet.ServletContext;
22 import javax.servlet.http.HttpServletRequest;
23 import javax.servlet.http.HttpServletResponse;
24 import org.turro.string.Strings;
25 import org.turro.action.Actions;
26 import org.turro.collections.KeyValueMap;
27 import org.turro.elephant.context.ElephantContext;
28 import org.turro.elephant.direct.DirectContent;
29 import org.turro.elephant.direct.DirectContents;
30 import org.turro.elephant.direct.IDirectContent;
36 @DirectContent(identifier=
"menu-command")
53 public boolean itsMe(String
id) {
54 return getIdentifier().equals(
id);
58 public boolean myTurn(HttpServletRequest request) {
63 public void execute(ServletContext context, HttpServletRequest request, HttpServletResponse response) {
66 String idMenu = map.get(
"idMenu");
67 if(!Strings.isBlank(idMenu)) {
static KeyValueMap getRightNowAction(IConstructor constructor)
static String createRightNowAction(String values)
static IConstructor getConstructor(HttpServletRequest request, HttpServletResponse response)
static boolean isYourTurn(HttpServletRequest request, String path)
static final String DIRECT_CONTENT_PATH
static String createURL(IUserMenu userMenu)
void execute(ServletContext context, HttpServletRequest request, HttpServletResponse response)
static String getIdentifier()
boolean myTurn(HttpServletRequest request)