Class PluginActionManager

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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 IPluginAction.
      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

        equals, 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 IPluginAction.
        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 the IPluginAction for the request.
        Type Parameters:
        A - the generic type
        Parameters:
        request - the request
        pluginActionClass - the plugin action class
        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