Class WebpagesController


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.api.identifiable.entity.parts.Webpage create()  
      String create​(org.springframework.ui.Model model, String parentType, String parentUuid)  
      String edit​(UUID uuid, Locale activeLanguage, org.springframework.ui.Model model)  
      de.digitalcollections.model.api.identifiable.entity.parts.Webpage get​(UUID uuid)  
      de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl> getSubpages​(UUID uuid, int pageNumber, int pageSize)  
      protected String module()  
      org.springframework.http.ResponseEntity save​(de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage, String parentType, UUID parentUuid)  
      org.springframework.http.ResponseEntity update​(UUID uuid, de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage)  
      org.springframework.http.ResponseEntity updateSubpagesOrder​(UUID uuid, List<de.digitalcollections.model.api.identifiable.entity.parts.Webpage> subpages)  
      String view​(UUID uuid, org.springframework.ui.Model model)  
      • Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

        verifyBinding
    • 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)
                      throws HttpException
        Throws:
        HttpException
      • 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,
                           @RequestParam(name="activeLanguage",required=false)
                           Locale activeLanguage,
                           org.springframework.ui.Model model)
                    throws HttpException
        Throws:
        HttpException
      • get

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

        @GetMapping("/api/webpages/{uuid}/webpages")
        @ResponseBody
        public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl> getSubpages​(@PathVariable
                                                                                                                                                       UUID uuid,
                                                                                                                                                       @RequestParam(name="pageNumber",required=false,defaultValue="0")
                                                                                                                                                       int pageNumber,
                                                                                                                                                       @RequestParam(name="pageSize",required=false,defaultValue="25")
                                                                                                                                                       int pageSize)
                                                                                                                                                throws HttpException
        Throws:
        HttpException
      • 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)
      • update

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

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