diff --git a/src/main/java/com/cloudhandson/vpdbackoffice/web/ProtectedObjectController.java b/src/main/java/com/cloudhandson/vpdbackoffice/web/ProtectedObjectController.java index 8b256b0..080e67c 100644 --- a/src/main/java/com/cloudhandson/vpdbackoffice/web/ProtectedObjectController.java +++ b/src/main/java/com/cloudhandson/vpdbackoffice/web/ProtectedObjectController.java @@ -38,13 +38,11 @@ public class ProtectedObjectController { @RequestParam String owner, @RequestParam String objectName, @RequestParam String ordsPath, - @RequestParam(required = false) String columns, - @RequestParam(required = false) String sensitiveColumns, RedirectAttributes redirectAttributes ) { try { protectedObjectService.createObject( - new ProtectedObjectCreateCommand(owner, objectName, ordsPath, columns, sensitiveColumns)); + new ProtectedObjectCreateCommand(owner, objectName, ordsPath, null, null)); redirectAttributes.addFlashAttribute("message", "ORDS 조회 Handler 대상을 추가했습니다."); } catch (AppException exception) { redirectAttributes.addFlashAttribute("errorMessage", exception.getMessage()); diff --git a/src/main/resources/static/js/app.js b/src/main/resources/static/js/app.js index 929b655..921645d 100644 --- a/src/main/resources/static/js/app.js +++ b/src/main/resources/static/js/app.js @@ -188,31 +188,16 @@ async function syncObjectCatalogSelection() { const ownerInput = document.querySelector('input[name="owner"]'); const objectInput = document.querySelector('input[name="objectName"]'); const ordsPathInput = document.querySelector('input[name="ordsPath"]'); - const columnsInput = document.querySelector('input[name="columns"]'); if (ownerInput) { ownerInput.value = selected.dataset.owner || ''; } if (objectInput) { objectInput.value = selected.dataset.objectName || ''; } - if (ordsPathInput && !ordsPathInput.value) { - ordsPathInput.focus(); - } - if (!columnsInput) { - return; - } - columnsInput.value = ''; - try { - const response = await fetch(`/permissions/object-columns?objectRef=${encodeURIComponent(`db:${catalog.value}`)}`); - if (!response.ok) { - return; - } - const columns = await response.json(); - if (Array.isArray(columns)) { - columnsInput.value = columns.join(','); - } - } catch (error) { - columnsInput.value = ''; + if (ordsPathInput) { + const owner = (selected.dataset.owner || '').toLowerCase(); + const objectName = (selected.dataset.objectName || '').toLowerCase(); + ordsPathInput.value = owner && objectName ? `cb-ords/cb-object-query/${owner}/${objectName}` : ''; } } diff --git a/src/main/resources/templates/objects.html b/src/main/resources/templates/objects.html index 798a61b..13fd430 100644 --- a/src/main/resources/templates/objects.html +++ b/src/main/resources/templates/objects.html @@ -16,10 +16,12 @@

조회 Handler 대상 추가

+ + - - - -