[Developer] #424 show generated ORDS handler source

This commit is contained in:
devmrko
2026-06-25 14:35:01 +09:00
parent 28dcde6975
commit daa302b9e7
4 changed files with 80 additions and 26 deletions

View File

@@ -79,6 +79,17 @@ public class ProtectedObjectController {
return "redirect:/objects";
}
@GetMapping("/objects/ords-handler-source")
public String ordsHandlerSource(@RequestParam long objectId, Model model) {
try {
model.addAttribute("object", protectedObjectService.assertEnabled(objectId));
model.addAttribute("source", ordsMetadataService.objectQueryHandlerSource(objectId));
} catch (AppException exception) {
model.addAttribute("errorMessage", exception.getMessage());
}
return "fragments/ords-handler-source :: source";
}
@PostMapping("/objects/disable")
public String disable(@RequestParam long objectId, RedirectAttributes redirectAttributes) {
protectedObjectService.disableObject(objectId);