Package nl.b3p.tailormap.api.controller
Class EditFeatureController
- java.lang.Object
-
- nl.b3p.tailormap.api.controller.EditFeatureController
-
-
Field Summary
-
Fields inherited from interface nl.b3p.tailormap.api.util.Constants
DEFAULT_MAX_FEATURES, FID, NAME_REGEX, NAME_REGEX_INVALID_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description EditFeatureController(FeatureSourceFactoryHelper featureSourceFactoryHelper, FeatureSourceRepository featureSourceRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Serializable>createFeature(AppTreeLayerNode appTreeLayerNode, GeoService service, GeoServiceLayer layer, Application application, Feature completeFeature)org.springframework.http.ResponseEntity<Void>deleteFeature(AppTreeLayerNode appTreeLayerNode, GeoService service, GeoServiceLayer layer, Application application, String fid)org.springframework.http.ResponseEntity<Serializable>patchFeature(AppTreeLayerNode appTreeLayerNode, GeoService service, GeoServiceLayer layer, Application application, String fid, Feature partialFeature)
-
-
-
Constructor Detail
-
EditFeatureController
public EditFeatureController(FeatureSourceFactoryHelper featureSourceFactoryHelper, FeatureSourceRepository featureSourceRepository)
-
-
Method Detail
-
createFeature
@Transactional @PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Serializable> createFeature(@ModelAttribute AppTreeLayerNode appTreeLayerNode, @ModelAttribute GeoService service, @ModelAttribute GeoServiceLayer layer, @ModelAttribute Application application, @RequestBody Feature completeFeature)
-
patchFeature
@Transactional @PatchMapping(consumes="application/json", produces="application/json", path="/{fid}") public org.springframework.http.ResponseEntity<Serializable> patchFeature(@ModelAttribute AppTreeLayerNode appTreeLayerNode, @ModelAttribute GeoService service, @ModelAttribute GeoServiceLayer layer, @ModelAttribute Application application, @PathVariable String fid, @RequestBody Feature partialFeature)
-
deleteFeature
@Transactional @DeleteMapping(path="/{fid}") public org.springframework.http.ResponseEntity<Void> deleteFeature(@ModelAttribute AppTreeLayerNode appTreeLayerNode, @ModelAttribute GeoService service, @ModelAttribute GeoServiceLayer layer, @ModelAttribute Application application, @PathVariable String fid)
-
-