Class GeoLocationController
java.lang.Object
de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController<T>
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>
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionGeoLocationController(GeoLocationService<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> geoLocationservice) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()org.springframework.http.ResponseEntityde.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, List<de.digitalcollections.model.list.filtering.FilterCriterion> filterCriteria, de.digitalcollections.model.list.filtering.Filtering filtering) 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>protected IdentifiableService<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>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
extractNamespaceAndIdMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
buildExamplesWithUuids, buildExampleWithUuid, delete, getByUuid, getByUuidAndLocale, getByUuidsMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
createPageRequest, getFieldType, mergeFilters
-
Constructor Details
-
GeoLocationController
public GeoLocationController(GeoLocationService<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> geoLocationservice)
-
-
Method Details
-
count
@GetMapping(value={"/v6/geolocations/count","/v5/geolocations/count","/v2/geolocations/count","/latest/geolocations/count"}, produces="application/json") public long count() throws ServiceException- Overrides:
countin classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
ServiceException
-
delete
@DeleteMapping(value="/v6/geolocations/{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:
deletein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
ConflictExceptionServiceException
-
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="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:
findin classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
ServiceException
-
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 ServiceException, ValidationException - Overrides:
getByIdentifierin classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
ServiceExceptionValidationException
-
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 ServiceException - Throws:
ServiceException
-
getByUuid
@GetMapping(value={"/v6/geolocations/{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/geolocations/{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/geolocations/{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/geolocations/{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.GeoLocation> getByUuid(@PathVariable("uuid") UUID uuid, @RequestParam(name="pLocale",required=false) Locale pLocale) throws ServiceException - Throws:
ServiceException
-
getLanguages
@GetMapping(value={"/v6/geolocations/languages","/v5/geolocations/languages","/v3/geolocations/languages","/latest/geolocations/languages"}, produces="application/json") public List<Locale> getLanguages() throws ServiceException- Overrides:
getLanguagesin classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
ServiceException
-
getService
protected IdentifiableService<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation> getService()- Specified by:
getServicein classAbstractIdentifiableController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>
-
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 ServiceException, ValidationException - Overrides:
savein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
ServiceExceptionValidationException
-
update
@PutMapping(value={"/v6/geolocations/{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/geolocations/{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/geolocations/{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/geolocations/{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.geo.location.GeoLocation update(@PathVariable("uuid") UUID uuid, @RequestBody de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation geoLocation, org.springframework.validation.BindingResult errors) throws ServiceException, ValidationException - Overrides:
updatein classAbstractUniqueObjectController<de.digitalcollections.model.identifiable.entity.geo.location.GeoLocation>- Throws:
ServiceExceptionValidationException
-