[Developer] #424 support ORDS handler source editing

This commit is contained in:
devmrko
2026-06-23 15:09:23 +09:00
parent d9a676d706
commit a542a7b735
8 changed files with 158 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
package com.cloudhandson.vpdbackoffice.domain.ords;
import jakarta.validation.constraints.NotBlank;
public record OrdsHandlerUpdateCommand(
long handlerId,
@NotBlank String source
) {
}

View File

@@ -1,7 +1,11 @@
package com.cloudhandson.vpdbackoffice.domain.ords;
import java.util.Locale;
public record OrdsHandlerView(
Long handlerId,
String schemaName,
String parsingSchema,
String moduleName,
String basePath,
String template,
@@ -15,4 +19,8 @@ public record OrdsHandlerView(
public String fullPath() {
return "/ords/" + schemaName + "/" + basePath + template;
}
public boolean plsqlEditable() {
return sourceType != null && sourceType.toLowerCase(Locale.ROOT).contains("plsql");
}
}