Class GeoLocationController
java.lang.Object
de.digitalcollections.cudami.server.controller.identifiable.entity.geo.location.GeoLocationController
@RestController
public class GeoLocationController
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description GeoLocationController(GeoLocationService geoLocationservice) -
Method Summary
Modifier and Type Method Description longcount()de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>findAll(int pageNumber, int pageSize, java.util.List<de.digitalcollections.model.paging.Order> sortBy, java.lang.String language, java.lang.String initial, java.lang.String searchTerm)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>get(java.util.UUID uuid, java.util.Locale pLocale)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>getByIdentifier(java.lang.String namespace, java.lang.String id)java.util.List<java.util.Locale>getLanguages()de.digitalcollections.model.identifiable.entity.geo.location.GeoLocationsave(de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation geoLocation, org.springframework.validation.BindingResult errors)de.digitalcollections.model.identifiable.entity.geo.location.GeoLocationupdate(java.util.UUID uuid, de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation geoLocation, org.springframework.validation.BindingResult errors)
-
Constructor Details
-
Method Details
-
count
@GetMapping(value={"/v5/geolocations/count","/v2/geolocations/count","/latest/geolocations/count"}, produces="application/json") public long count() -
findAll
@GetMapping(value={"/v5/geolocations","/v2/geolocations","/latest/geolocations"}, produces="application/json") public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> findAll(@RequestParam(name="pageNumber",required=false,defaultValue="0") int pageNumber, @RequestParam(name="pageSize",required=false,defaultValue="5") int pageSize, @RequestParam(name="sortBy",required=false) java.util.List<de.digitalcollections.model.paging.Order> sortBy, @RequestParam(name="language",required=false) java.lang.String language, @RequestParam(name="initial",required=false) java.lang.String initial, @RequestParam(name="searchTerm",required=false) java.lang.String searchTerm) -
get
@GetMapping(value={"/v5/geolocations/{uuid}","/v2/geolocations/{uuid}","/latest/geolocations/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> get(@PathVariable("uuid") java.util.UUID uuid, @RequestParam(name="pLocale",required=false) java.util.Locale pLocale) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
getByIdentifier
@GetMapping(value={"/v5/geolocations/{uuid}","/v2/geolocations/identifier","/latest/geolocations/{uuid}"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> getByIdentifier(@RequestParam(name="namespace",required=true) java.lang.String namespace, @RequestParam(name="id",required=true) java.lang.String id) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
getLanguages
@GetMapping(value={"/v5/geolocations/languages","/v3/geolocations/languages","/latest/geolocations/languages"}, produces="application/json") public java.util.List<java.util.Locale> getLanguages() -
save
@PostMapping(value={"/v5/geolocations","/v2/geolocations","/latest/geolocations"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation save(@RequestBody de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation geoLocation, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
update
@PutMapping(value={"/v5/geolocations/{uuid}","/v2/geolocations/{uuid}","/latest/geolocations/{uuid}"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation update(@PathVariable("uuid") java.util.UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation geoLocation, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-