LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.portlet
Class LyActionPortlet

java.lang.Object
  extended by javax.portlet.GenericPortlet
      extended by leon.view.web.portlet.LyActionPortlet
All Implemented Interfaces:
javax.portlet.EventPortlet, javax.portlet.Portlet, javax.portlet.PortletConfig, javax.portlet.ResourceServingPortlet
Direct Known Subclasses:
LyTablePortlet

public class LyActionPortlet
extends javax.portlet.GenericPortlet


Field Summary
static java.lang.String DIV_LEONARDI_VIEW
           
static java.lang.String KEY_ACTION_PORTLET_CONFIG
          Key to access portlet config in session
static java.lang.String KEY_CURRENT_CONTROLLER
          Key to access to current controller
static java.lang.String KEY_CURRENT_POPUP_VIEW_CONTROLLER
           
static java.lang.Object LOCK_SESSION
          Session lock for multithread access
static java.lang.String PARAM_LEONARDI_ACTION
           
static java.lang.String PARAM_LEONARDI_SELECTION
           
 
Constructor Summary
LyActionPortlet()
           
 
Method Summary
 void destroy()
           
 LyApplication getApplication()
          Gets an application from a http request.
 java.lang.String getParameter(javax.portlet.PortletRequest request, java.lang.String name)
          Retrieves a parameter in an http request.
 LySession getSession(javax.portlet.PortletRequest request)
          Gets a session from a http request.
static LySession getSession(javax.portlet.PortletSession portletSession, java.lang.String applicationId)
          Gets the LySession associated to the given HttpSession within the given application.
 void init(javax.portlet.PortletConfig config)
          Executed one time, upon portlet instantiation.
 void initActionURLs(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
          Gets the sort action and writes associated javascript function for this table.
 void processAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response)
          Handle actions from portlet
 
Methods inherited from class javax.portlet.GenericPortlet
getContainerRuntimeOptions, getDefaultNamespace, getInitParameter, getInitParameterNames, getPortletConfig, getPortletContext, getPortletName, getProcessingEventQNames, getPublicRenderParameterNames, getPublishingEventQNames, getResourceBundle, getSupportedLocales, init, processEvent, render, serveResource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCK_SESSION

public static final java.lang.Object LOCK_SESSION
Session lock for multithread access


KEY_ACTION_PORTLET_CONFIG

public static final java.lang.String KEY_ACTION_PORTLET_CONFIG
Key to access portlet config in session

See Also:
Constant Field Values

KEY_CURRENT_CONTROLLER

public static final java.lang.String KEY_CURRENT_CONTROLLER
Key to access to current controller

See Also:
Constant Field Values

KEY_CURRENT_POPUP_VIEW_CONTROLLER

public static final java.lang.String KEY_CURRENT_POPUP_VIEW_CONTROLLER
See Also:
Constant Field Values

PARAM_LEONARDI_ACTION

public static final java.lang.String PARAM_LEONARDI_ACTION
See Also:
Constant Field Values

PARAM_LEONARDI_SELECTION

public static final java.lang.String PARAM_LEONARDI_SELECTION
See Also:
Constant Field Values

DIV_LEONARDI_VIEW

public static final java.lang.String DIV_LEONARDI_VIEW
See Also:
Constant Field Values
Constructor Detail

LyActionPortlet

public LyActionPortlet()
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface javax.portlet.Portlet
Overrides:
destroy in class javax.portlet.GenericPortlet

init

public void init(javax.portlet.PortletConfig config)
          throws javax.portlet.PortletException
Executed one time, upon portlet instantiation.

Specified by:
init in interface javax.portlet.Portlet
Overrides:
init in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException

processAction

public void processAction(javax.portlet.ActionRequest request,
                          javax.portlet.ActionResponse response)
                   throws javax.portlet.PortletException,
                          java.io.IOException
Handle actions from portlet

Specified by:
processAction in interface javax.portlet.Portlet
Overrides:
processAction in class javax.portlet.GenericPortlet
Throws:
javax.portlet.PortletException
java.io.IOException

getSession

public LySession getSession(javax.portlet.PortletRequest request)
Gets a session from a http request.

Parameters:
application - the current application
request - the request
Returns:
the session build from the request

getSession

public static LySession getSession(javax.portlet.PortletSession portletSession,
                                   java.lang.String applicationId)
Gets the LySession associated to the given HttpSession within the given application.

Parameters:
httpSession - The HttpSession.
applicationId - identifier of the application.
Returns:
The associated LySession if the application id is found in the request, null otherwise

getApplication

public LyApplication getApplication()
Gets an application from a http request.

Parameters:
request - the current request IF ANY, but may be null ! (load-on-startup)
Returns:
current application if no error occured

getParameter

public java.lang.String getParameter(javax.portlet.PortletRequest request,
                                     java.lang.String name)
Retrieves a parameter in an http request.

Parameters:
request - the request to parse
name - the name of the parameter to find
Returns:
the value of the parameter if it is found, null otherwise

initActionURLs

public void initActionURLs(javax.portlet.RenderRequest request,
                           javax.portlet.RenderResponse response)
Gets the sort action and writes associated javascript function for this table.

Parameters:
pw - the page writer

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com