Class WebpagesController


  • @Controller
    public class WebpagesController
    extends de.digitalcollections.commons.springmvc.controller.AbstractController
    Controller for webpage management pages.
    • Method Detail

      • module

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

        @GetMapping("/webpages/new")
        public String create​(org.springframework.ui.Model model,
                             @RequestParam("parentType")
                             String parentType,
                             @RequestParam("parentUuid")
                             String parentUuid)
      • create

        @GetMapping("/api/webpages/new")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.parts.Webpage create()
      • edit

        @GetMapping("/webpages/{uuid}/edit")
        public String edit​(@PathVariable
                           UUID uuid,
                           org.springframework.ui.Model model)
      • get

        @GetMapping("/api/webpages/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.api.identifiable.entity.parts.Webpage get​(@PathVariable
                                                                                     UUID uuid)
      • save

        @PostMapping("/api/webpages/new")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage,
                                                            @RequestParam("parentType")
                                                            String parentType,
                                                            @RequestParam("parentUuid")
                                                            UUID parentUuid)
                                                     throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • view

        @GetMapping("/webpages/{uuid}")
        public String view​(@PathVariable
                           UUID uuid,
                           org.springframework.ui.Model model)