fr.paris.lutece.portal.web.pluginaction
Class PluginActionManager

java.lang.Object
  extended by fr.paris.lutece.portal.web.pluginaction.PluginActionManager

public final class PluginActionManager
extends java.lang.Object

PluginActionManager.

See Also:
getListPluginAction(Class), getPluginAction(HttpServletRequest, Class), fillModel(HttpServletRequest, AdminUser, Map, Class, String)

Method Summary
static
<A extends IPluginAction<?>>
void
fillModel(javax.servlet.http.HttpServletRequest request, AdminUser adminUser, java.util.Map<java.lang.String,java.lang.Object> model, java.lang.Class<A> pluginActionClass, java.lang.String strMark)
          Fills the model with all actions and adds the list to the given marker
static
<A extends IPluginAction<?>>
java.util.List<A>
getListPluginAction(java.lang.Class<A> pluginActionClass)
          Gets the list of IDirectoryAction
static
<A extends IPluginAction<?>>
A
getPluginAction(javax.servlet.http.HttpServletRequest request, java.lang.Class<A> pluginActionClass)
          Gets the IPluginAction for the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getListPluginAction

public static <A extends IPluginAction<?>> java.util.List<A> getListPluginAction(java.lang.Class<A> pluginActionClass)
Gets the list of IDirectoryAction

Returns:
the list

getPluginAction

public static <A extends IPluginAction<?>> A getPluginAction(javax.servlet.http.HttpServletRequest request,
                                                             java.lang.Class<A> pluginActionClass)
Gets the IPluginAction for the request.

Parameters:
request - the request
Returns:
the invoked IPluginAction, null otherwise.
See Also:
IPluginAction.isInvoked(HttpServletRequest)

fillModel

public static <A extends IPluginAction<?>> void fillModel(javax.servlet.http.HttpServletRequest request,
                                                          AdminUser adminUser,
                                                          java.util.Map<java.lang.String,java.lang.Object> model,
                                                          java.lang.Class<A> pluginActionClass,
                                                          java.lang.String strMark)
Fills the model with all actions and adds the list to the given marker

Type Parameters:
A - the action type (usually the interface)
Parameters:
request - the request
adminUser - the admin user
model - the model
pluginActionClass - the action class (usually the interface)
strMark - the marker to put for the actions list


Copyright © 2011 Mairie de Paris. All Rights Reserved.