Package org.tailormap.api.controller
Class EditFeatureController
java.lang.Object
org.tailormap.api.controller.EditFeatureController
- All Implemented Interfaces:
Constants
-
Field Summary
Fields inherited from interface org.tailormap.api.util.Constants
FID, ID, INDEX_DISPLAY_FIELD, INDEX_GEOM_FIELD, INDEX_SEARCH_FIELD, NAME_REGEX, NAME_REGEX_INVALID_MESSAGE, SEARCH_ID_FIELD, SEARCH_LAYER, TEST_TASK_TYPE, UUID_REGEX
-
Constructor Summary
ConstructorDescriptionEditFeatureController
(FeatureSourceFactoryHelper featureSourceFactoryHelper, FeatureSourceRepository featureSourceRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.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 Details
-
EditFeatureController
public EditFeatureController(FeatureSourceFactoryHelper featureSourceFactoryHelper, FeatureSourceRepository featureSourceRepository)
-
-
Method Details
-
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)
-