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