public final class PluginActionManager extends Object
getPluginAction(HttpServletRequest, Class)
to find the invoked action
fillModel(HttpServletRequest, AdminUser, Map, Class, String)
to fill you model
Modifier and Type | Method and Description |
---|---|
static <A extends IPluginAction<?>> |
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
|
static <A extends IPluginAction<?>> |
getListPluginAction(Class<A> pluginActionClass)
Gets the list of
IPluginAction . |
static <A extends IPluginAction<?>> |
getPluginAction(javax.servlet.http.HttpServletRequest request,
Class<A> pluginActionClass)
Gets the
IPluginAction for the request. |
public static <A extends IPluginAction<?>> List<A> getListPluginAction(Class<A> pluginActionClass)
IPluginAction
.A
- the generic typepluginActionClass
- the plugin action classpublic static <A extends IPluginAction<?>> A getPluginAction(javax.servlet.http.HttpServletRequest request, Class<A> pluginActionClass)
IPluginAction
for the request.A
- the generic typerequest
- the requestpluginActionClass
- the plugin action classIPluginAction
, null
otherwise.IPluginAction.isInvoked(HttpServletRequest)
public static <A extends IPluginAction<?>> void fillModel(javax.servlet.http.HttpServletRequest request, AdminUser adminUser, Map<String,Object> model, Class<A> pluginActionClass, String strMark)
A
- the action type (usually the interface)request
- the requestadminUser
- the admin usermodel
- the modelpluginActionClass
- the action class (usually the interface)strMark
- the marker to put for the actions listCopyright © 2020 City of Paris. All rights reserved.