Class RenderingTemplatesController


  • @Controller
    public class RenderingTemplatesController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for rendering template management pages.
    • Constructor Detail

      • RenderingTemplatesController

        public RenderingTemplatesController​(CudamiClient client)
    • Method Detail

      • create

        @GetMapping("/renderingtemplates/new")
        public String create()
      • createModel

        @GetMapping("/api/renderingtemplates/new")
        @ResponseBody
        public de.digitalcollections.model.view.RenderingTemplate createModel()
                                                                       throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • edit

        @GetMapping("/renderingtemplates/{uuid}/edit")
        public String edit​(@PathVariable
                           UUID uuid,
                           org.springframework.ui.Model model)
                    throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • find

        @GetMapping("/api/renderingtemplates")
        @ResponseBody
        public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.view.RenderingTemplate> find​(@RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                             int pageNumber,
                                                                                                                             @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                             int pageSize,
                                                                                                                             @RequestParam(name="searchTerm",required=false)
                                                                                                                             String searchTerm,
                                                                                                                             @RequestParam(name="sortBy",required=false)
                                                                                                                             List<de.digitalcollections.model.list.sorting.Order> sortBy)
                                                                                                                      throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • getByUuid

        @GetMapping("/api/renderingtemplates/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.view.RenderingTemplate getByUuid​(@PathVariable
                                                                            UUID uuid)
                                                                     throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • list

        @GetMapping("/renderingtemplates")
        public String list()
      • module

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

        @PostMapping("/api/renderingtemplates")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.view.RenderingTemplate template)
      • update

        @PutMapping("/api/renderingtemplates/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.view.RenderingTemplate template)