Class HumanSettlementController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>
-
- de.digitalcollections.cudami.server.controller.identifiable.entity.geo.location.HumanSettlementController
-
@RestController public class HumanSettlementController extends AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>
-
-
Constructor Summary
Constructors Constructor Description HumanSettlementController(HumanSettlementService humanSettlementService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntitydelete(UUID uuid)de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>find(int pageNumber, int pageSize, List<de.digitalcollections.model.list.sorting.Order> sortBy, String searchTerm, String labelTerm, Locale labelLanguage)org.springframework.http.ResponseEntity<Void>getByIdentifier(String namespace, String id, javax.servlet.http.HttpServletRequest request)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>getByIdentifier(javax.servlet.http.HttpServletRequest request)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>getByUuid(UUID uuid, Locale pLocale)protected IdentifiableService<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>getService()de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlementsave(de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement humanSettlement, org.springframework.validation.BindingResult errors)de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlementupdate(UUID uuid, de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement humanSettlement, org.springframework.validation.BindingResult errors)-
Methods inherited from class de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController
addLabelFilter, find
-
-
-
-
Constructor Detail
-
HumanSettlementController
public HumanSettlementController(HumanSettlementService humanSettlementService)
-
-
Method Detail
-
getService
protected IdentifiableService<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement> getService()
- Specified by:
getServicein classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>
-
delete
@DeleteMapping(value="/v6/humansettlements/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity delete(@PathVariable("uuid") UUID uuid) throws ConflictException- Throws:
ConflictException
-
find
@GetMapping(value="/v6/humansettlements", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement> 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="searchTerm",required=false) String searchTerm, @RequestParam(name="label",required=false) String labelTerm, @RequestParam(name="labelLanguage",required=false) Locale labelLanguage)
-
getByIdentifier
@GetMapping(value={"/v6/humansettlements/identifier/**","/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(javax.servlet.http.HttpServletRequest request) throws IdentifiableServiceException, ValidationException- Overrides:
getByIdentifierin classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.HumanSettlement>- Throws:
IdentifiableServiceExceptionValidationException
-
getByIdentifier
@GetMapping(value={"/v6/humansettlements/identifier","/v5/humansettlements/identifier","/v2/humansettlements/identifier","/latest/humansettlements/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 IdentifiableServiceException- Throws:
IdentifiableServiceException
-
getByUuid
@GetMapping(value={"/v6/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}}","/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> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
save
@PostMapping(value={"/v6/humansettlements","/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, ValidationException
-
update
@PutMapping(value={"/v6/humansettlements/{uuid}","/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, ValidationException
-
-