Class ArticlesController
- java.lang.Object
-
- de.digitalcollections.commons.springmvc.controller.AbstractController
-
- de.digitalcollections.cudami.admin.controller.identifiable.entity.ArticlesController
-
@Controller public class ArticlesController extends de.digitalcollections.commons.springmvc.controller.AbstractControllerController for articles management pages.
-
-
Constructor Summary
Constructors Constructor Description ArticlesController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.identifiable.entity.Articlecreate()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.Article>findAll(int pageNumber, int pageSize, String searchTerm)de.digitalcollections.model.identifiable.entity.Articleget(UUID uuid)Stringlist(org.springframework.ui.Model model)protected Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.identifiable.entity.Article article)org.springframework.http.ResponseEntityupdate(UUID uuid, de.digitalcollections.model.identifiable.entity.Article article)Stringview(UUID uuid, org.springframework.ui.Model model)
-
-
-
Constructor Detail
-
ArticlesController
public ArticlesController(LanguageSortingHelper languageSortingHelper, CudamiClient client)
-
-
Method Detail
-
module
@ModelAttribute("menu") protected String module()
-
create
@GetMapping("/articles/new") public String create(org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
create
@GetMapping("/api/articles/new") @ResponseBody public de.digitalcollections.model.identifiable.entity.Article create()
-
edit
@GetMapping("/articles/{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/articles") @ResponseBody public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Article> 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
-
get
@GetMapping("/api/articles/{uuid}") @ResponseBody public de.digitalcollections.model.identifiable.entity.Article get(@PathVariable UUID uuid) throws HttpException- Throws:
HttpException
-
list
@GetMapping("/articles") public String list(org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
save
@PostMapping("/api/articles") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.identifiable.entity.Article article)
-
update
@PutMapping("/api/articles/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.Article article)
-
view
@GetMapping("/articles/{uuid}") public String view(@PathVariable UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
-