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.AbstractController
Controller for Person management pages.
-
Constructor Summary
Constructors Constructor Description PersonsController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient) -
Method Summary
Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.agent.Personcreate()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.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.agent.PersonImpl>findAll(int pageNumber, int pageSize)de.digitalcollections.model.api.identifiable.entity.agent.Personget(java.util.UUID uuid)java.lang.Stringlist()protected java.lang.Stringmodule()org.springframework.http.ResponseEntitysave(de.digitalcollections.model.api.identifiable.entity.agent.Person person)org.springframework.http.ResponseEntityupdate(java.util.UUID uuid, de.digitalcollections.model.api.identifiable.entity.agent.Person person)java.lang.Stringview(java.util.UUID uuid, org.springframework.ui.Model model)
-
Constructor Details
-
PersonsController
@Autowired public PersonsController(LanguageSortingHelper languageSortingHelper, CudamiClient cudamiClient)
-
-
Method Details
-
create
@GetMapping("/persons/new") public java.lang.String create(org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-
create
@GetMapping("/api/persons/new") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.agent.Person create() -
edit
@GetMapping("/persons/{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/persons") @ResponseBody public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.impl.identifiable.entity.agent.PersonImpl> findAll(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="25") int pageSize) throws HttpException- Throws:
HttpException
-
get
@GetMapping("/api/persons/{uuid}") @ResponseBody public de.digitalcollections.model.api.identifiable.entity.agent.Person get(@PathVariable java.util.UUID uuid) throws HttpException- Throws:
HttpException
-
list
@GetMapping("/persons") public java.lang.String list() -
module
@ModelAttribute("menu") protected java.lang.String module() -
save
@PostMapping("/api/persons/new") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.api.identifiable.entity.agent.Person person) -
update
@PutMapping("/api/persons/{uuid}") public org.springframework.http.ResponseEntity update(@PathVariable java.util.UUID uuid, @RequestBody de.digitalcollections.model.api.identifiable.entity.agent.Person person) -
view
@GetMapping("/persons/{uuid}") public java.lang.String view(@PathVariable java.util.UUID uuid, org.springframework.ui.Model model) throws HttpException- Throws:
HttpException
-