java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.identifiable.entity.WebsitesController

@Controller
public class WebsitesController
extends de.digitalcollections.commons.springmvc.controller.AbstractController
Controller for website management pages.
  • Constructor Summary

    Constructors
    Constructor Description
    WebsitesController​(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)  
  • Method Summary

    Modifier and Type Method Description
    de.digitalcollections.model.api.identifiable.entity.Website create()  
    java.lang.String create​(org.springframework.ui.Model model)  
    java.lang.String edit​(java.util.UUID uuid, java.util.Locale activeLanguage, org.springframework.ui.Model model)  
    de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.WebsiteImpl> findAll​(int pageNumber, int pageSize)  
    de.digitalcollections.model.api.identifiable.entity.Website get​(java.util.UUID uuid)  
    de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.parts.Webpage> getRootpages​(java.util.UUID uuid, int pageNumber, int pageSize)  
    java.lang.String list​(org.springframework.ui.Model model)  
    protected java.lang.String module()  
    org.springframework.http.ResponseEntity save​(de.digitalcollections.model.api.identifiable.entity.Website website)  
    org.springframework.http.ResponseEntity update​(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.entity.Website website)  
    org.springframework.http.ResponseEntity updateRootPagesOrder​(java.util.UUID uuid, java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Webpage> rootPages)  
    java.lang.String view​(java.util.UUID uuid, org.springframework.ui.Model model)  

    Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController

    verifyBinding

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • module

      @ModelAttribute("menu") protected java.lang.String module()
    • create

      @GetMapping("/websites/new") public java.lang.String create​(org.springframework.ui.Model model) throws HttpException
      Throws:
      HttpException
    • create

      @GetMapping("/api/websites/new") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.Website create()
    • edit

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

      @GetMapping("/api/websites") @ResponseBody public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.WebsiteImpl> findAll​(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize) throws HttpException
      Throws:
      HttpException
    • get

      @GetMapping("/api/websites/{uuid}") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.Website get​(@PathVariable java.util.UUID uuid) throws HttpException
      Throws:
      HttpException
    • getRootpages

      @GetMapping("/api/websites/{uuid}/webpages") @ResponseBody public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.parts.Webpage> getRootpages​(@PathVariable java.util.UUID uuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize) throws HttpException
      Throws:
      HttpException
    • list

      @GetMapping("/websites") public java.lang.String list​(org.springframework.ui.Model model) throws HttpException
      Throws:
      HttpException
    • save

      @PostMapping("/api/websites/new") public org.springframework.http.ResponseEntity save​(@RequestBody de.digitalcollections.model.api.identifiable.entity.Website website)
    • update

      @PutMapping("/api/websites/{uuid}") public org.springframework.http.ResponseEntity update​(@PathVariable java.util.UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.Website website)
    • updateRootPagesOrder

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

      @GetMapping("/websites/{uuid}") public java.lang.String view​(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model) throws HttpException
      Throws:
      HttpException