Class PostEditCleanupController

    • Constructor Detail

      • PostEditCleanupController

        public PostEditCleanupController()
    • 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
      • doPostEditRedirect

        protected static ResponseValues doPostEditRedirect​(VitroRequest vreq,
                                                           String entityToReturnTo)
        Returns a redirect after an edit.
        Parameters:
        vreq - - should have an edit configuration in attributes or session
        entityToReturnTo - - may be null
      • doPostEditCleanup

        public static void doPostEditCleanup​(VitroRequest vreq)
      • getPredicateAnchor

        public static String getPredicateAnchor​(javax.servlet.http.HttpServletRequest req,
                                                EditConfigurationVTwo config)
        Adds a attribute to the request to indicate which predicate was edited. This attribute is used by some controllers to send the browser to the place on the page relevant to the predicate. Never returns null, it will return an empty string if there is nothing.