Class V5PersonController
java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.agent.V5PersonController
-
Constructor Summary
ConstructorsConstructorDescriptionV5PersonController(PersonService personService, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String language, String initial, de.digitalcollections.model.list.filtering.FilterCriterion<UUID> previewImageFilter, String searchTerm) org.springframework.http.ResponseEntity<String>findByGeoLocationOfBirth(UUID uuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy) org.springframework.http.ResponseEntity<String>findByGeoLocationOfDeath(UUID uuid, int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy)
-
Constructor Details
-
V5PersonController
public V5PersonController(PersonService personService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
find
@GetMapping(value={"/v5/persons","/v2/persons","/latest/persons"}, produces="application/json") public org.springframework.http.ResponseEntity<String> find(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy, @RequestParam(name="language",required=false,defaultValue="de") String language, @RequestParam(name="initial",required=false) String initial, @RequestParam(name="previewImage",required=false) de.digitalcollections.model.list.filtering.FilterCriterion<UUID> previewImageFilter, @RequestParam(name="searchTerm",required=false) String searchTerm) throws CudamiControllerException, ServiceException -
findByGeoLocationOfBirth
@GetMapping(value={"/v5/persons/placeofbirth/{uuid}","/v2/persons/placeofbirth/{uuid}","/latest/persons/placeofbirth/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<String> findByGeoLocationOfBirth(@PathVariable("uuid") UUID uuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy) throws CudamiControllerException, ServiceException -
findByGeoLocationOfDeath
@GetMapping(value={"/v5/persons/placeofdeath/{uuid}","/v2/persons/placeofdeath/{uuid}","/latest/persons/placeofdeath/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<String> findByGeoLocationOfDeath(@PathVariable("uuid") UUID uuid, @RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) List<de.digitalcollections.model.list.sorting.Order> sortBy) throws CudamiControllerException, ServiceException
-