@RestController public class PersonController extends AbstractEntityController<de.digitalcollections.model.identifiable.entity.agent.Person>
  • Constructor Details

  • Method Details

    • count

      @GetMapping(value={"/v6/persons/count","/v5/persons/count","/v2/persons/count","/latest/persons/count"}, produces="application/json") public long count() throws ServiceException
      Overrides:
      count in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.agent.Person>
      Throws:
      ServiceException
    • delete

      @DeleteMapping(value="/v6/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public org.springframework.http.ResponseEntity delete(@PathVariable("uuid") UUID uuid) throws ConflictException, ServiceException
      Overrides:
      delete in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.agent.Person>
      Throws:
      ConflictException
      ServiceException
    • find

      @GetMapping(value="/v6/persons", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.agent.Person> 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="filter",required=false) List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, @RequestParam(name="filtering",required=false) de.digitalcollections.model.list.filtering.Filtering filtering) throws ServiceException
      Overrides:
      find in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.agent.Person>
      Throws:
      ServiceException
    • findByGeoLocationOfBirth

      @GetMapping(value="/v6/persons/placeofbirth/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.agent.Person> 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 ServiceException
      Throws:
      ServiceException
    • findByGeoLocationOfDeath

      @GetMapping(value="/v6/persons/placeofdeath/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.agent.Person> 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 ServiceException
      Throws:
      ServiceException
    • getByIdentifier

      @GetMapping(value={"/v6/persons/identifier/**","/v5/persons/identifier/**","/v2/persons/identifier/**","/latest/persons/identifier/**"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.agent.Person> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws ServiceException, ValidationException
      Overrides:
      getByIdentifier in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.agent.Person>
      Throws:
      ServiceException
      ValidationException
    • getByIdentifier

      @GetMapping(value={"/v6/persons/identifier","/v5/persons/identifier","/v2/persons/identifier","/latest/persons/identifier"}, produces="application/json") public org.springframework.http.ResponseEntity<Void> getByIdentifier(@RequestParam(name="namespace",required=true) String namespace, @RequestParam(name="id",required=true) String id, javax.servlet.http.HttpServletRequest request) throws ServiceException
      Throws:
      ServiceException
    • getByUuid

      @GetMapping(value={"/v6/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v5/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v2/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/latest/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.agent.Person> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException
      Throws:
      ServiceException
    • getDigitalObjects

      @GetMapping(value={"/v6/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/v5/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/v2/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects","/latest/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/digitalobjects"}, produces="application/json") public Set<de.digitalcollections.model.identifiable.entity.digitalobject.DigitalObject> getDigitalObjects(@PathVariable("uuid") UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • getLanguages

      @GetMapping(value={"/v6/persons/languages","/v5/persons/languages","/v3/persons/languages","/latest/persons/languages"}, produces="application/json") public List<Locale> getLanguages() throws ServiceException
      Overrides:
      getLanguages in class AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.agent.Person>
      Throws:
      ServiceException
    • getService

      protected EntityService<de.digitalcollections.model.identifiable.entity.agent.Person> getService()
      Specified by:
      getService in class AbstractEntityController<de.digitalcollections.model.identifiable.entity.agent.Person>
    • getWorks

      @GetMapping(value={"/v6/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/works","/v5/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/works","/v2/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/works","/latest/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}/works"}, produces="application/json") public Set<de.digitalcollections.model.identifiable.entity.work.Work> getWorks(@PathVariable("uuid") UUID uuid) throws ServiceException
      Throws:
      ServiceException
    • save

      @PostMapping(value={"/v6/persons","/v5/persons","/v2/persons","/latest/persons"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.agent.Person save(@RequestBody de.digitalcollections.model.identifiable.entity.agent.Person person, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      save in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.agent.Person>
      Throws:
      ServiceException
      ValidationException
    • update

      @PutMapping(value={"/v5/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v6/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/v2/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}","/latest/persons/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.agent.Person update(@PathVariable("uuid") UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.agent.Person person, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException
      Overrides:
      update in class AbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.agent.Person>
      Throws:
      ServiceException
      ValidationException