Class RenderingTemplatesController

java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController<de.digitalcollections.model.view.RenderingTemplate>
de.digitalcollections.cudami.admin.controller.view.RenderingTemplatesController

@Controller @SessionAttributes("renderingTemplate") public class RenderingTemplatesController extends AbstractUniqueObjectController<de.digitalcollections.model.view.RenderingTemplate>
Controller for rendering template management pages.
  • Constructor Details

    • RenderingTemplatesController

      public RenderingTemplatesController(CudamiClient client, LanguageService languageService, org.springframework.context.MessageSource messageSource)
  • Method Details

    • create

      @GetMapping("/renderingtemplates/new") public String create(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • edit

      @GetMapping("/renderingtemplates/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/edit") public String edit(@PathVariable UUID uuid, @RequestParam(name="activeLanguage",required=false) Locale activeLanguage, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException, de.digitalcollections.model.exception.ResourceNotFoundException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
      de.digitalcollections.model.exception.ResourceNotFoundException
    • list

      @GetMapping("/renderingtemplates") public String list(org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • module

      @ModelAttribute("menu") protected String module()
    • save

      @PostMapping("/renderingtemplates/new") public String save(@ModelAttribute @Valid @Valid de.digitalcollections.model.view.RenderingTemplate renderingTemplate, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
    • update

      @PostMapping("/renderingtemplates/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/edit") public String update(@PathVariable UUID uuid, @ModelAttribute("formData") de.digitalcollections.model.view.RenderingTemplate renderingTemplateFormData, @ModelAttribute de.digitalcollections.model.view.RenderingTemplate renderingTemplate, org.springframework.validation.BindingResult results, org.springframework.ui.Model model, org.springframework.web.bind.support.SessionStatus status, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) throws de.digitalcollections.model.exception.TechnicalException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
    • view

      @GetMapping("/renderingtemplates/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}") public String view(@PathVariable UUID uuid, @RequestParam(name="dataLanguage",required=false) String targetDataLanguage, org.springframework.ui.Model model) throws de.digitalcollections.model.exception.TechnicalException, de.digitalcollections.model.exception.ResourceNotFoundException
      Throws:
      de.digitalcollections.model.exception.TechnicalException
      de.digitalcollections.model.exception.ResourceNotFoundException