Package nl.b3p.formendpoint.controller
Class FeatureController
- java.lang.Object
-
- nl.b3p.formendpoint.controller.FeatureController
-
- All Implemented Interfaces:
FormController
@RestController @RequestMapping("features") public class FeatureController extends Object implements FormController
-
-
Field Summary
-
Fields inherited from interface nl.b3p.formendpoint.controller.FormController
attributefilter
-
-
Constructor Summary
Constructors Constructor Description FeatureController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String objectGuid)voiddelete(String featuretype, String objectGuid)List<FeaturetypeMetadata>featuretypeInformation(String[] featureTypes)List<Feature>featuretypeOnPoint(String[] featureTypes, double x, double y, double scale)Featureget(String objectGuid)Featureget(String featuretype, String objectGuid)List<Feature>getAll()org.springframework.data.domain.PagegetAllPaged(org.springframework.data.domain.Pageable pageable)ClassgetMaintainingClass()voidinit()List<Feature>onPoint(double x, double y, double scale)Featuresave(Feature f, String parentId)Featureupdate(String objectGuid, Feature feature)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nl.b3p.formendpoint.controller.FormController
getMaintainingClassString
-
-
-
-
Method Detail
-
init
@PostConstruct public void init()
-
get
@GetMapping("/{featuretype}/{objectGuid}") public Feature get(@PathVariable String featuretype, @PathVariable String objectGuid) throws Exception- Throws:
Exception
-
featuretypeInformation
@GetMapping("/info/{featureTypes}") public List<FeaturetypeMetadata> featuretypeInformation(@PathVariable String[] featureTypes)
-
getAll
@GetMapping("/unpaged") public List<Feature> getAll()- Specified by:
getAllin interfaceFormController
-
onPoint
@GetMapping("/{x}/{y}/{scale}") public List<Feature> onPoint(@PathVariable double x, @PathVariable double y, @PathVariable double scale)- Specified by:
onPointin interfaceFormController
-
featuretypeOnPoint
@GetMapping("/{featureTypes}/{x}/{y}/{scale}") public List<Feature> featuretypeOnPoint(@PathVariable String[] featureTypes, @PathVariable double x, @PathVariable double y, @PathVariable double scale) throws Exception- Throws:
Exception
-
save
@PostMapping public Feature save(@RequestBody Feature f, @RequestParam(required=false) String parentId) throws Exception
- Specified by:
savein interfaceFormController- Throws:
Exception
-
update
@PutMapping("/{objectGuid}") public Feature update(@PathVariable String objectGuid, @RequestBody Feature feature) throws Exception- Specified by:
updatein interfaceFormController- Throws:
Exception
-
delete
@Transactional @DeleteMapping("{featuretype}/{objectGuid}") public void delete(@PathVariable String featuretype, @PathVariable String objectGuid) throws Exception- Throws:
Exception
-
getMaintainingClass
public Class getMaintainingClass()
- Specified by:
getMaintainingClassin interfaceFormController
-
get
public Feature get(String objectGuid)
- Specified by:
getin interfaceFormController
-
getAllPaged
public org.springframework.data.domain.Page getAllPaged(org.springframework.data.domain.Pageable pageable)
- Specified by:
getAllPagedin interfaceFormController
-
delete
public void delete(String objectGuid)
- Specified by:
deletein interfaceFormController
-
-