| java.lang.Object javax.portlet.GenericPortlet org.gridsphere.provider.portlet.jsr.ActionPortlet
All known Subclasses: org.gridsphere.portlets.core.news.NewsPortlet, org.gridsphere.portlets.core.admin.config.ConfigPortlet, org.gridsphere.portlets.core.admin.portlets.PortletApplicationManager, org.gridsphere.portlets.core.user.ProfileManagerPortlet, org.gridsphere.portlets.core.about.AboutPortlet, org.gridsphere.portlets.core.admin.layout.LayoutManagerPortlet, org.gridsphere.portlets.core.admin.users.SessionManagerPortlet, org.gridsphere.portlets.core.login.LoginPortlet, org.gridsphere.portlets.core.admin.content.ContentManagementPortlet, org.gridsphere.portlets.core.admin.users.UserManagerPortlet, org.gridsphere.portlets.core.rss.RSSPortlet, org.gridsphere.portlets.core.admin.roles.RoleManagerPortlet, org.gridsphere.portlets.core.locale.LocalePortlet, org.gridsphere.portlets.core.registration.SignupPortlet,
ActionPortlet | public class ActionPortlet extends GenericPortlet (Code) | | An ActionPortlet provides an abstraction on top of
GenericPortlet to develop portlets under the action provider model.
|
Method Summary | |
protected void | createErrorMessage(FormEvent evt, String text) | public PortletService | createPortletService(Class serviceClass) | protected void | createSuccessMessage(FormEvent evt, String text) | protected void | doAction(PortletRequest request, PortletResponse response, String methodName, Class[] parameterTypes, Object[] arguments) | public void | doConfigure(RenderRequest request, RenderResponse response) | protected void | doDispatch(RenderRequest request, RenderResponse response) | public void | doEdit(RenderRequest request, RenderResponse response) | public void | doHelp(RenderRequest request, RenderResponse response) | protected void | doMode(RenderRequest request, RenderResponse response) | public void | doView(RenderRequest request, RenderResponse response) | public void | doViewJSP(RenderRequest request, RenderResponse response, String jsp) Renders the supplied JSP page. | protected String | getLocalizedText(PortletRequest req, String key) | protected String | getNextState(PortletRequest request) Returns the next display state. | public String | getParameter(PortletRequest request, String param) | public String | getParameter(PortletRequest request, String param, String defaultValue) | public boolean | getParameterAsBool(PortletRequest request, String param) | public Boolean | getParameterAsBoolean(PortletRequest request, String param) | public double | getParameterAsDbl(PortletRequest request, String param) | public double | getParameterAsDbl(PortletRequest request, String param, double defaultValue) | public Double | getParameterAsDouble(PortletRequest request, String param) | public Float | getParameterAsFloat(PortletRequest request, String param) | public float | getParameterAsFlt(PortletRequest request, String param) | public float | getParameterAsFlt(PortletRequest request, String param, float defaultValue) | public int | getParameterAsInt(PortletRequest request, String param) | public int | getParameterAsInt(PortletRequest request, String param, int defaultValue) | public Integer | getParameterAsInteger(PortletRequest request, String param) | public long | getParameterAsLng(PortletRequest request, String param) | public long | getParameterAsLng(PortletRequest request, String param, long defaultValue) | public String[] | getParameterValues(PortletRequest request, String param) | public boolean[] | getParameterValuesAsBool(PortletRequest request, String param) | public Boolean[] | getParameterValuesAsBoolean(PortletRequest request, String param) | public double[] | getParameterValuesAsDbl(PortletRequest request, String param) | public Double[] | getParameterValuesAsDouble(PortletRequest request, String param) | public Float[] | getParameterValuesAsFloat(PortletRequest request, String param) | public float[] | getParameterValuesAsFlt(PortletRequest request, String param) | public int[] | getParameterValuesAsInt(PortletRequest request, String param) | public Integer[] | getParameterValuesAsInteger(PortletRequest request, String param) | public List<String> | getParameterValuesAsList(PortletRequest request, String param) | public long[] | getParameterValuesAsLng(PortletRequest request, String param) | public Map | getParameterValuesAsMap(PortletRequest request, String param) | protected Map<String, TagBean> | getTagBeans(PortletRequest request) Returns the tag beans obtained from the FormEvent. | protected String | getUniqueId() | public void | init(PortletConfig config) | public void | processAction(ActionRequest actionRequest, ActionResponse actionResponse) Uses the action name obtained from the ActionEvent to invoke the
appropriate portlet action method. | protected void | removeNextState(PortletRequest request) | protected void | removeTagBeans(PortletRequest request) | protected void | setFileDownloadEvent(PortletRequest req, String fileName, String path) | protected void | setFileDownloadEvent(PortletRequest req, String fileName, String path, boolean deleteFile) | protected void | setFileDownloadEvent(PortletRequest req, File file) | protected void | setNextState(PortletRequest request, String state) Sets the next display state. | protected void | setTagBeans(PortletRequest request, Map tagBeans) Sets the tag beans obtained from the FormEvent. |
DEFAULT_CONFIGURE_PAGE | protected String DEFAULT_CONFIGURE_PAGE(Code) | | |
doAction | protected void doAction(PortletRequest request, PortletResponse response, String methodName, Class[] parameterTypes, Object[] arguments) throws PortletException(Code) | | Invokes the appropriate portlet action method based on the portlet action received
Parameters: request - the portlet request Parameters: response - the portlet response Parameters: methodName - the method name to invoke Parameters: parameterTypes - the method parameters Parameters: arguments - the method arguments throws: PortletException - if a portlet error occurs |
getNextState | protected String getNextState(PortletRequest request)(Code) | | Returns the next display state. The state specified may be either a JSP or it can
be another method name to invoke.
Parameters: request - the PortletRequest the next display state, either the JSP to include or a method to invoke |
getTagBeans | protected Map<String, TagBean> getTagBeans(PortletRequest request)(Code) | | Returns the tag beans obtained from the FormEvent. Used internally and should not
normally need to be invoked by portlet developers.
Parameters: request - the PortletRequest the visual beans |
processAction | public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException(Code) | | Uses the action name obtained from the ActionEvent to invoke the
appropriate portlet action method.
Parameters: actionRequest - the ActionRequest Parameters: actionResponse - the ActionResponse throws: PortletException - if a portlet exception occurs |
setNextState | protected void setNextState(PortletRequest request, String state)(Code) | | Sets the next display state. The state specified may be either a JSP or it can
be another method name to invoke.
Parameters: request - the Portletrequest Parameters: state - the next display state |
setTagBeans | protected void setTagBeans(PortletRequest request, Map tagBeans)(Code) | | Sets the tag beans obtained from the FormEvent. Used internally and should not
normally need to be invoked by portlet developers.
Parameters: request - the PortletRequest Parameters: tagBeans - a Map containing the portlet UI visual beans |
Methods inherited from javax.portlet.GenericPortlet | public void destroy()(Code)(Java Doc) protected void doDispatch(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code)(Java Doc) protected void doEdit(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code)(Java Doc) protected void doHelp(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code)(Java Doc) protected void doView(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code)(Java Doc) public String getInitParameter(java.lang.String name)(Code)(Java Doc) public java.util.Enumeration getInitParameterNames()(Code)(Java Doc) public PortletConfig getPortletConfig()(Code)(Java Doc) public PortletContext getPortletContext()(Code)(Java Doc) public String getPortletName()(Code)(Java Doc) public java.util.ResourceBundle getResourceBundle(java.util.Locale locale)(Code)(Java Doc) protected java.lang.String getTitle(RenderRequest request)(Code)(Java Doc) public void init(PortletConfig config) throws PortletException(Code)(Java Doc) public void init() throws PortletException(Code)(Java Doc) public void processAction(ActionRequest request, ActionResponse response) throws PortletException, java.io.IOException(Code)(Java Doc) public void render(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException(Code)(Java Doc)
|
|
|