Class WebpagesController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.parts.WebpagesController
-
@Controller public class WebpagesController extends de.digitalcollections.commons.springmvc.controller.AbstractControllerController for webpage management pages.
-
-
Constructor Summary
Constructors Constructor Description WebpagesController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.parts.Webpagecreate()Stringcreate(org.springframework.ui.Model model, String parentType, String parentUuid)Stringedit(UUID uuid, Locale activeLanguage, org.springframework.ui.Model model)de.digitalcollections.model.api.identifiable.entity.parts.Webpageget(UUID uuid)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl>getSubpages(UUID uuid, int pageNumber, int pageSize)protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage, String parentType, UUID parentUuid)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
WebpagesController
@Autowired public WebpagesController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
-
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)
-
view
@GetMapping("/webpages/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-