Class WebsitesController
- 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.AbstractControllerController for website management pages.
-
-
Constructor Summary
Constructors Constructor Description WebsitesController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.identifiable.entity.Websitecreate()Stringcreate(org.springframework.ui.Model model)Stringedit(UUID uuid, Locale activeLanguage, org.springframework.ui.Model model)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Website>findAll(int pageNumber, int pageSize, String searchTerm)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage>findRootpages(UUID uuid, int pageNumber, int pageSize, String searchTerm)de.digitalcollections.model.identifiable.entity.Websiteget(UUID uuid)Stringlist(org.springframework.ui.Model model)protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.identifiable.entity.Website website)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.identifiable.entity.Website website)org.springframework.http.ResponseEntityupdateRootPagesOrder(UUID uuid, List<de.digitalcollections.model.identifiable.web.Webpage> rootPages)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
WebsitesController
public WebsitesController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/websites/new") public String create(org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
create
@GetMapping("/api/websites/new") @ResponseBody public de.digitalcollections.model.identifiable.entity.Website create()
-
edit
@GetMapping("/websites/{uuid}/edit") public String edit(@PathVariable UUID uuid, @RequestParam(name="activeLanguage",required=false) Locale activeLanguage, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
findAll
@GetMapping("/api/websites") @ResponseBody public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Website> findAll(@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
-
findRootpages
@GetMapping("/api/websites/{uuid}/webpages") @ResponseBody public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage> findRootpages(@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/websites/{uuid}") @ResponseBody public de.digitalcollections.model.identifiable.entity.Website get(@PathVariable UUID uuid) throws HttpException- Throws:
HttpException
-
list
@GetMapping("/websites") public String list(org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
save
@PostMapping("/api/websites") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.identifiable.entity.Website website)
-
update
@PutMapping("/api/websites/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.Website website)
-
updateRootPagesOrder
@PutMapping("/api/websites/{uuid}/webpages") public org.springframework.http.ResponseEntity updateRootPagesOrder(@PathVariable UUID uuid, @RequestBody List<de.digitalcollections.model.identifiable.web.Webpage> rootPages) throws HttpException- Throws:
HttpException
-
view
@GetMapping("/websites/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-