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.AbstractController
Controller for website management pages.
-
Constructor Summary
Constructors Constructor Description WebsitesController(LanguageSortingHelper languageSortingHelper, CudamiClient client) -
Method Summary
Modifier and Type Method Description de.digitalcollections.model.identifiable.entity.Websitecreate()java.lang.Stringcreate(org.springframework.ui.Model model)java.lang.Stringedit(java.util.UUID uuid, java.util.Locale activeLanguage, org.springframework.ui.Model model)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Website>findAll(int pageNumber, int pageSize, java.lang.String searchTerm)de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.web.Webpage>findRootpages(java.util.UUID uuid, int pageNumber, int pageSize, java.lang.String searchTerm)de.digitalcollections.model.identifiable.entity.Websiteget(java.util.UUID uuid)java.lang.Stringlist(org.springframework.ui.Model model)protected java.lang.Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.identifiable.entity.Website website)org.springframework.http.ResponseEntityupdate(java.util.UUID uuid, de.digitalcollections.model.identifiable.entity.Website website)org.springframework.http.ResponseEntityupdateRootPagesOrder(java.util.UUID uuid, java.util.List<de.digitalcollections.model.identifiable.web.Webpage> rootPages)java.lang.Stringview(java.util.UUID uuid, org.springframework.ui.Model model)
-
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.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.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) java.lang.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 java.util.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) java.lang.String searchTerm) throws HttpException- Throws:
HttpException
-
get
@GetMapping("/api/websites/{uuid}") @ResponseBody public de.digitalcollections.model.identifiable.entity.Website get(@PathVariable java.util.UUID uuid) 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") 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 java.util.UUID uuid, @RequestBody de.digitalcollections.model.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.identifiable.web.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
-