Class PluginActionManager
java.lang.Object
fr.paris.lutece.portal.web.pluginaction.PluginActionManager
PluginActionManager.
- Use
getPluginAction(HttpServletRequest, Class)to find the invoked action - Use
fillModel(HttpServletRequest, AdminUser, Map, Class, String)to fill you model
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends IPluginAction<?>>
voidfillModel(javax.servlet.http.HttpServletRequest request, AdminUser adminUser, Map<String, Object> model, Class<A> pluginActionClass, String strMark) Fills the model with all actions and adds the list to the given markerstatic <A extends IPluginAction<?>>
List<A>getListPluginAction(Class<A> pluginActionClass) Gets the list ofIPluginAction.static <A extends IPluginAction<?>>
AgetPluginAction(javax.servlet.http.HttpServletRequest request, Class<A> pluginActionClass) Gets theIPluginActionfor the request.
-
Method Details
-
getListPluginAction
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, 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:
-
fillModel
public static <A extends IPluginAction<?>> void fillModel(javax.servlet.http.HttpServletRequest request, AdminUser adminUser, Map<String, Object> model, Class<A> pluginActionClass, 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
-