Class AdminStructuredContentController

java.lang.Object
org.broadleafcommerce.common.web.controller.BroadleafAbstractController

@RequestMapping("/structured-content") public class AdminStructuredContentController extends AdminBasicEntityController
Handles admin operations for the StructuredContent entity. This entity has fields that are dependent on the value of the StructuredContent.getStructuredContentType() field, and as such, it deviates from the typical AdminAbstractEntityController.
Author:
Andre Azzolini (apazzolini)
  • Field Details

  • Constructor Details

    • AdminStructuredContentController

      public AdminStructuredContentController()
  • Method Details

    • getSectionKey

      protected String getSectionKey(Map<String,String> pathVars)
      Overrides:
      getSectionKey in class AdminAbstractController
    • viewEntityForm

      @RequestMapping(value="/{id}", method=GET) public String viewEntityForm(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @PathVariable("id") String id) throws Exception
      Overrides:
      viewEntityForm in class AdminBasicEntityController
      Throws:
      Exception
    • saveEntity

      @RequestMapping(value="/{id}", method=POST) public String saveEntity(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @PathVariable("id") String id, @ModelAttribute("entityForm") EntityForm entityForm, org.springframework.validation.BindingResult result, org.springframework.web.servlet.mvc.support.RedirectAttributes ra) throws Exception
      Overrides:
      saveEntity in class AdminBasicEntityController
      Throws:
      Exception
    • getDynamicForm

      @RequestMapping(value="/{propertyName}/dynamicForm", method=GET) public String getDynamicForm(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, @PathVariable Map<String,String> pathVars, @PathVariable("propertyName") String propertyName, @RequestParam("propertyTypeId") String propertyTypeId) throws Exception
      Throws:
      Exception