Class PluginActionManager
- java.lang.Object
-
- fr.paris.lutece.portal.web.pluginaction.PluginActionManager
-
public final class PluginActionManager extends java.lang.ObjectPluginActionManager.- Use
getPluginAction(HttpServletRequest, Class)to find the invoked action - Use
fillModel(HttpServletRequest, AdminUser, Map, Class, String)to fill you model
- Use
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends IPluginAction<?>>
voidfillModel(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 markerstatic <A extends IPluginAction<?>>
java.util.List<A>getListPluginAction(java.lang.Class<A> pluginActionClass)Gets the list ofIPluginAction.static <A extends IPluginAction<?>>
AgetPluginAction(javax.servlet.http.HttpServletRequest request, java.lang.Class<A> pluginActionClass)Gets theIPluginActionfor the request.
-
-
-
Method Detail
-
getListPluginAction
public static <A extends IPluginAction<?>> java.util.List<A> getListPluginAction(java.lang.Class<A> pluginActionClass)
Gets the list ofIPluginAction.- Type Parameters:
A- the generic type- Parameters:
pluginActionClass- the plugin action class- Returns:
- the list
-
getPluginAction
public static <A extends IPluginAction<?>> A getPluginAction(javax.servlet.http.HttpServletRequest request, java.lang.Class<A> pluginActionClass)
Gets theIPluginActionfor the request.- Type Parameters:
A- the generic type- Parameters:
request- the requestpluginActionClass- the plugin action class- Returns:
- the invoked
IPluginAction,nullotherwise. - 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 requestadminUser- the admin usermodel- the modelpluginActionClass- the action class (usually the interface)strMark- the marker to put for the actions list
-
-