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.AbstractController
Controller for webpage management pages.
-
Constructor Summary
Constructors Constructor Description WebpagesController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
Method Summary
Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.parts.Webpage
create()
java.lang.String
create(org.springframework.ui.Model model, java.lang.String parentType, java.lang.String parentUuid)
java.lang.String
edit(java.util.UUID uuid, java.util.Locale activeLanguage, org.springframework.ui.Model model)
de.digitalcollections.model.api.identifiable.entity.parts.Webpage
get(java.util.UUID uuid)
de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.parts.WebpageImpl>
getSubpages(java.util.UUID uuid, int pageNumber, int pageSize)
protected java.lang.String
module()
org.springframework.http.ResponseEntity
save(de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage, java.lang.String parentType, java.util.UUID parentUuid)
org.springframework.http.ResponseEntity
update(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage)
org.springframework.http.ResponseEntity
updateSubpagesOrder(java.util.UUID uuid, java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Webpage> subpages)
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
-
WebpagesController
@Autowired public WebpagesController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
-
Method Details
-
module
@ModelAttribute("menu") protected java.lang.String module() -
create
@GetMapping("/webpages/new") public java.lang.String create(org.springframework.ui.Model model, @RequestParam("parentType") java.lang.String parentType, @RequestParam("parentUuid") java.lang.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 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
-
get
@GetMapping("/api/webpages/{uuid}") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.parts.Webpage get(@PathVariable java.util.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 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
-
save
@PostMapping("/api/webpages/new") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.api.identifiable.entity.parts.Webpage webpage, @RequestParam("parentType") java.lang.String parentType, @RequestParam("parentUuid") java.util.UUID parentUuid) -
update
@PutMapping("/api/webpages/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable java.util.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 java.util.UUID uuid, @RequestBody java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Webpage> subpages) throws HttpException- Throws:
HttpException
-
view
@GetMapping("/webpages/{uuid}") public java.lang.String view(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-