Class HumanSettlementController


  • @RestController
    public class HumanSettlementController
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement> findAll​(int pageNumber, int pageSize, List<de.digitalcollections.model.paging.Order> sortBy, String language, String initial)  
      org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement> get​(UUID uuid, Locale pLocale)  
      org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement> getByIdentifier​(String namespace, String id)  
      de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement save​(de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement humanSettlement, org.springframework.validation.BindingResult errors)  
      de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement update​(UUID uuid, de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement humanSettlement, org.springframework.validation.BindingResult errors)  
    • Constructor Detail

      • HumanSettlementController

        public HumanSettlementController​(HumanSettlementService humanSettlementService)
    • Method Detail

      • findAll

        @GetMapping(value={"/v5/humansettlements","/v2/humansettlements","/latest/humansettlements"},
                    produces="application/json")
        public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement> findAll​(@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.paging.Order> sortBy,
                                                                                                                                                     @RequestParam(name="language",required=false,defaultValue="de")
                                                                                                                                                     String language,
                                                                                                                                                     @RequestParam(name="initial",required=false)
                                                                                                                                                     String initial)
      • get

        @GetMapping(value={"/v5/humansettlements/{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/humansettlements/{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/humansettlements/{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.geo.location.HumanSettlement> get​(@PathVariable("uuid")
                                                                                                                                         UUID uuid,
                                                                                                                                         @RequestParam(name="pLocale",required=false)
                                                                                                                                         Locale pLocale)
                                                                                                                                  throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • getByIdentifier

        @GetMapping(value={"/v5/humansettlements/identifier","/v2/humansettlements/identifier","/latest/humansettlements/identifier"},
                    produces="application/json")
        public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement> getByIdentifier​(@RequestParam(name="namespace",required=true)
                                                                                                                                                     String namespace,
                                                                                                                                                     @RequestParam(name="id",required=true)
                                                                                                                                                     String id)
                                                                                                                                              throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • save

        @PostMapping(value={"/v5/humansettlements","/v2/humansettlements","/latest/humansettlements"},
                     produces="application/json")
        public de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement save​(@RequestBody
                                                                                                 de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement humanSettlement,
                                                                                                 org.springframework.validation.BindingResult errors)
                                                                                          throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException
      • update

        @PutMapping(value={"/v5/humansettlements/{uuid}","/v2/humansettlements/{uuid}","/latest/humansettlements/{uuid}"},
                    produces="application/json")
        public de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement update​(@PathVariable("uuid")
                                                                                                   UUID uuid,
                                                                                                   @RequestBody
                                                                                                   de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement humanSettlement,
                                                                                                   org.springframework.validation.BindingResult errors)
                                                                                            throws IdentifiableServiceException
        Throws:
        IdentifiableServiceException