Class ProcessRdfFormController

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

    @WebServlet(name="ProcessRdfFormController",
                urlPatterns="/edit/process")
    public class ProcessRdfFormController
    extends FreemarkerHttpServlet
    This servlet will convert a request to an EditSubmission, find the EditConfiguration associated with the request, use ProcessRdfForm to process these to a set of RDF additions and retractions, the apply these to the models.
    See Also:
    Serialized Form
    • Constructor Detail

      • ProcessRdfFormController

        public ProcessRdfFormController()
    • 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
      • handleMissingConfiguration

        protected ResponseValues handleMissingConfiguration​(VitroRequest vreq)
        If the edit configuration cannot be found in the Session, show a message and display any request parameters so that the user's efforts won't be lost.