Package org.tailormap.api.controller
Class AppRestControllerAdvice
java.lang.Object
org.tailormap.api.controller.AppRestControllerAdvice
@RestControllerAdvice(annotations=AppRestController.class)
public class AppRestControllerAdvice
extends Object
-
Constructor Summary
ConstructorDescriptionAppRestControllerAdvice
(ApplicationRepository applicationRepository, GeoServiceRepository geoServiceRepository, ApplicationHelper applicationHelper, AuthorizationService authorizationService) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity<?>
handleResponseStatusException
(org.springframework.web.server.ResponseStatusException ex) protected void
initBinder
(org.springframework.web.bind.WebDataBinder binder) populateApplication
(ViewerResponse.KindEnum viewerKind, String viewerName, String base, String projection) populateAppTreeLayerNode
(Application app, String appLayerId) populateGeoService
(Application app, AppTreeLayerNode appTreeLayerNode) populateGeoServiceLayer
(AppTreeLayerNode appTreeLayerNode, GeoService service) populateViewerKind
(jakarta.servlet.http.HttpServletRequest request)
-
Constructor Details
-
AppRestControllerAdvice
public AppRestControllerAdvice(ApplicationRepository applicationRepository, GeoServiceRepository geoServiceRepository, ApplicationHelper applicationHelper, AuthorizationService authorizationService)
-
-
Method Details
-
initBinder
@InitBinder protected void initBinder(org.springframework.web.bind.WebDataBinder binder) -
handleResponseStatusException
@ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) protected org.springframework.http.ResponseEntity<?> handleResponseStatusException(org.springframework.web.server.ResponseStatusException ex) -
populateViewerKind
@ModelAttribute public ViewerResponse.KindEnum populateViewerKind(jakarta.servlet.http.HttpServletRequest request) -
populateApplication
@ModelAttribute public Application populateApplication(@ModelAttribute ViewerResponse.KindEnum viewerKind, @PathVariable(required=false) String viewerName, @RequestParam(required=false) String base, @RequestParam(required=false) String projection) -
populateAppTreeLayerNode
@ModelAttribute public AppTreeLayerNode populateAppTreeLayerNode(@ModelAttribute Application app, @PathVariable(required=false) String appLayerId) -
populateGeoService
@ModelAttribute public GeoService populateGeoService(@ModelAttribute Application app, @ModelAttribute AppTreeLayerNode appTreeLayerNode) -
populateGeoServiceLayer
@ModelAttribute public GeoServiceLayer populateGeoServiceLayer(@ModelAttribute AppTreeLayerNode appTreeLayerNode, @ModelAttribute GeoService service)
-