Class WebpagesController


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

      • create

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

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

        @GetMapping("/webpages/{uuid}/edit")
        public String edit​(@PathVariable
                           UUID uuid,
                           @RequestParam(name="activeLanguage",required=false)
                           Locale activeLanguage,
                           org.springframework.ui.Model model)
                    throws HttpException
        Throws:
        HttpException
      • findSubpages

        @GetMapping("/api/webpages/{uuid}/webpages")
        @ResponseBody
        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> findSubpages​(@PathVariable
                                                                                                                                  UUID uuid,
                                                                                                                                  @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)
                                                                                                                           throws HttpException
        Throws:
        HttpException
      • get

        @GetMapping("/api/webpages/{uuid}")
        @ResponseBody
        public de.digitalcollections.model.identifiable.web.Webpage get​(@PathVariable
                                                                        UUID uuid)
                                                                 throws HttpException
        Throws:
        HttpException
      • module

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

        @PostMapping("/api/webpages")
        public org.springframework.http.ResponseEntity save​(@RequestBody
                                                            de.digitalcollections.model.identifiable.web.Webpage webpage,
                                                            @RequestParam("parentType")
                                                            String parentType,
                                                            @RequestParam("parentUuid")
                                                            UUID parentUuid)
      • update

        @PutMapping("/api/webpages/{uuid}")
        public org.springframework.http.ResponseEntity update​(@PathVariable
                                                              UUID uuid,
                                                              @RequestBody
                                                              de.digitalcollections.model.identifiable.web.Webpage webpage)
      • updateSubpagesOrder

        @PutMapping("/api/webpages/{uuid}/webpages")
        public org.springframework.http.ResponseEntity updateSubpagesOrder​(@PathVariable
                                                                           UUID uuid,
                                                                           @RequestBody
                                                                           List<de.digitalcollections.model.identifiable.web.Webpage> subpages)
                                                                    throws HttpException
        Throws:
        HttpException