Class EditRequestDispatchController

  • All Implemented Interfaces:
    MultipartRequestWrapper.ParsingStrategy, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @WebServlet(name="EditRequestDispatch",
                urlPatterns="/editRequestDispatch")
    public class EditRequestDispatchController
    extends FreemarkerHttpServlet
    This servlet is intended to handle all requests to create a form for use by the N3 editing system. It will examine the request parameters, determine which form to use, execute a EditConfiguration setup, and evaluate the view indicated by the EditConfiguration. Do not add code to this class to achieve some behavior in a form. Try adding the behavior logic to the code that generates the EditConfiguration for the form.
    See Also:
    Serialized Form
    • Field Detail

      • log

        public static org.apache.commons.logging.Log log
    • Constructor Detail

      • EditRequestDispatchController

        public EditRequestDispatchController()
    • Method Detail

      • requiredActions

        protected AuthorizationRequest requiredActions​(VitroRequest vreq)
        Description copied from class: FreemarkerHttpServlet
        By default, a page requires authorization for no actions. Subclasses that require authorization to process their page will override to return the actions that require authorization. In some cases, the choice of actions will depend on the contents of the request. NB This method can't be static, because then the superclass method gets called rather than the subclass method. For the same reason, it can't refer to a static or instance field REQUIRED_ACTIONS which is overridden in the subclass.
        Overrides:
        requiredActions in class FreemarkerHttpServlet