01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork.portlet;
06:
07: /**
08: * Interface defining some constants used in the WebWork2 portlet implementation
09: *
10: * @author <a href="mailto:nils-helge.garli@bekk.no">Nils-Helge Garli</a>
11: *
12: */
13: public interface PortletActionConstants {
14: /**
15: * Default action name to use when no default action has been configured in the portlet
16: * init parameters.
17: */
18: String DEFAULT_ACTION_NAME = "default";
19:
20: /**
21: * Action name parameter name
22: */
23: String ACTION_PARAM = "webwork.portlet.action";
24:
25: /**
26: * Key for parameter holding the last executed portlet mode.
27: */
28: String MODE_PARAM = "webwork.portlet.mode";
29:
30: /**
31: * Key used for looking up and storing the portlet phase
32: */
33: String PHASE = "webwork.portlet.phase";
34:
35: /**
36: * Constant used for the render phase (
37: * {@link javax.portlet.Portlet#render(javax.portlet.RenderRequest, javax.portlet.RenderResponse)})
38: */
39: Integer RENDER_PHASE = new Integer(1);
40:
41: /**
42: * Constant used for the event phase (
43: * {@link javax.portlet.Portlet#processAction(javax.portlet.ActionRequest, javax.portlet.ActionResponse)})
44: */
45: Integer EVENT_PHASE = new Integer(2);
46:
47: /**
48: * Key used for looking up and storing the
49: * {@link javax.portlet.PortletRequest}
50: */
51: String REQUEST = "webwork.portlet.request";
52:
53: /**
54: * Key used for looking up and storing the
55: * {@link javax.portlet.PortletResponse}
56: */
57: String RESPONSE = "webwork.portlet.response";
58:
59: /**
60: * Key used for looking up and storing the action that was invoked in the event phase.
61: */
62: String EVENT_ACTION = "webwork.portlet.eventAction";
63:
64: /**
65: * Key used for looking up and storing the
66: * {@link javax.portlet.PortletConfig}
67: */
68: String PORTLET_CONFIG = "webwork.portlet.config";
69:
70: /**
71: * Name of the action used as error handler
72: */
73: String ERROR_ACTION = "errorHandler";
74:
75: /**
76: * Key for the portlet namespace stored in the
77: * {@link com.opensymphony.webwork.portlet.context.PortletActionContext}.
78: */
79: String PORTLET_NAMESPACE = "webwork.portlet.portletNamespace";
80:
81: /**
82: * Key for the mode-to-namespace map stored in the
83: * {@link com.opensymphony.webwork.portlet.context.PortletActionContext}.
84: */
85: String MODE_NAMESPACE_MAP = "webwork.portlet.modeNamespaceMap";
86:
87: /**
88: * Key for the default action name for the portlet, stored in the
89: * {@link com.opensymphony.webwork.portlet.context.PortletActionContext}.
90: */
91: String DEFAULT_ACTION_FOR_MODE = "webwork.portlet.defaultActionForMode";
92: }
|