Class UIPortletActionListener
java.lang.Object
org.exoplatform.portal.webui.application.UIPortletActionListener
May 29, 2006
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis listener is called when the portlet mode of a portlet has to be changed.static classThis listener is called when the portlet portlet window state has to be changed.static classThe process action listener is called when an ActionURL generated by the portlet container has been invoked by the client
The call is delegated to the portlet container iteself using the method portletContainer.processAction(...).static classProcess Events sent by the portlet API during the processAction() and serverResource() methods defined in Portlet API 2.0 (JSR 286)static classThis listener is called when a RenderURL url has been generated by the portlet container.static classThe serveResource() method defined in the JSR 286 specs has several goals: - provide binary output like images to be displayed in the portlet (in the previous spec - JSR 168 - a servlet was needed) - provide text output that does not impact the entire portal rendering, it is for instance usefull when dealing with Javascript to return some JSON structures
The method delegates the call to the portlet container serverResource method after filling the ResourceInput object with the current request state. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <S,C extends Serializable, I>
List<javax.portlet.Event> processEvent(UIPortlet<S, C> uiPortlet, javax.portlet.Event event) This method is called when the javax.portlet.Event is supported by the current portlet stored in the Portlet Caontainer
The processEvent() method can also generates IPC events and hence the portal itself will call the ProcessEventsActionListener once againstatic voidsetNextMode(UIPortlet uiPortlet, javax.portlet.PortletMode portletMode) This method is used to set the next portlet mode if this one needs to be modified because of the incoming requeststatic voidsetNextState(UIPortlet uiPortlet, javax.portlet.WindowState state) This method is used to set the next portlet window state if this one needs to be modified because of the incoming requeststatic voidsetupPublicRenderParams(UIPortlet uiPortlet, Map<String, String[]> requestParams) This method is called by the process action and render action listeners, aka during the processDecode() phase of our UI framework
It goes throughs all the request parameters and add to the public render parameters Map the one that are supported by the targeted portlet
-
Field Details
-
PORTLET_EVENTS
- See Also:
-
CHANGE_WINDOW_STATE_EVENT
- See Also:
-
CHANGE_PORTLET_MODE_EVENT
- See Also:
-
log
protected static org.exoplatform.services.log.Log log
-
-
Constructor Details
-
UIPortletActionListener
public UIPortletActionListener()
-
-
Method Details
-
setNextState
This method is used to set the next portlet window state if this one needs to be modified because of the incoming request -
setNextMode
This method is used to set the next portlet mode if this one needs to be modified because of the incoming request -
processEvent
public static <S,C extends Serializable, List<javax.portlet.Event> processEventI> (UIPortlet<S, C> uiPortlet, javax.portlet.Event event) This method is called when the javax.portlet.Event is supported by the current portlet stored in the Portlet Caontainer
The processEvent() method can also generates IPC events and hence the portal itself will call the ProcessEventsActionListener once again -
setupPublicRenderParams
This method is called by the process action and render action listeners, aka during the processDecode() phase of our UI framework
It goes throughs all the request parameters and add to the public render parameters Map the one that are supported by the targeted portlet
-