[Developer] #424 support ORDS handler source editing
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.ords;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
public record OrdsHandlerUpdateCommand(
|
||||
long handlerId,
|
||||
@NotBlank String source
|
||||
) {
|
||||
}
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user