Class GeoLocationController
- java.lang.Object
-
- de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
-
- de.digitalcollections.cudami.server.controller.identifiable.entity.geo.location.GeoLocationController
-
@RestController public class GeoLocationController extends AbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
-
-
Constructor Summary
Constructors Constructor Description GeoLocationController(GeoLocationService geoLocationservice)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()org.springframework.http.ResponseEntitydelete(UUID uuid)de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>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.GeoLocation>getByIdentifier(javax.servlet.http.HttpServletRequest request)org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>getByUuid(UUID uuid, Locale pLocale)List<Locale>getLanguages()protected IdentifiableService<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>getService()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(UUID uuid, de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation geoLocation, org.springframework.validation.BindingResult errors)-
Methods inherited from class de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController
addLabelFilter, find
-
-
-
-
Constructor Detail
-
GeoLocationController
public GeoLocationController(GeoLocationService geoLocationservice)
-
-
Method Detail
-
getService
protected IdentifiableService<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> getService()
- Specified by:
getServicein classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
-
count
@GetMapping(value={"/v6/geolocations/count","/v5/geolocations/count","/v2/geolocations/count","/latest/geolocations/count"}, produces="application/json") public long count()
-
delete
@DeleteMapping(value="/v6/geolocations/{uuid}", produces="application/json") public org.springframework.http.ResponseEntity delete(@PathVariable("uuid") UUID uuid) throws ConflictException- Throws:
ConflictException
-
find
@GetMapping(value="/v6/geolocations", produces="application/json") public de.digitalcollections.model.list.paging.PageResponse<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> 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/geolocations/identifier/**","/v5/geolocations/identifier/**","/v2/geolocations/identifier/**","/latest/geolocations/identifier/**"}, produces="application/json") public org.springframework.http.ResponseEntity<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws IdentifiableServiceException, ValidationException- Overrides:
getByIdentifierin classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
IdentifiableServiceExceptionValidationException
-
getByIdentifier
@GetMapping(value={"/v6/geolocations/identifier","/v5/geolocations/identifier","/v2/geolocations/identifier","/latest/geolocations/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/geolocations/{uuid}","/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> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws IdentifiableServiceException- Throws:
IdentifiableServiceException
-
getLanguages
@GetMapping(value={"/v6/geolocations/languages","/v5/geolocations/languages","/v3/geolocations/languages","/latest/geolocations/languages"}, produces="application/json") public List<Locale> getLanguages()
-
save
@PostMapping(value={"/v6/geolocations","/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, ValidationException
-
update
@PutMapping(value={"/v6/geolocations/{uuid}","/v5/geolocations/{uuid}","/v2/geolocations/{uuid}","/latest/geolocations/{uuid}"}, produces="application/json") public de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation update(@PathVariable("uuid") UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation geoLocation, org.springframework.validation.BindingResult errors) throws IdentifiableServiceException, ValidationException
-
-