fix #424: use dropdowns for VPD policy form
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.vpd;
|
||||
|
||||
public record VpdFunctionOption(
|
||||
String owner,
|
||||
String packageName,
|
||||
String functionName,
|
||||
String objectType
|
||||
) {
|
||||
|
||||
public String value() {
|
||||
String packagePrefix = packageName == null || packageName.isBlank() ? "" : packageName + ".";
|
||||
return owner + "." + packagePrefix + functionName;
|
||||
}
|
||||
|
||||
public String label() {
|
||||
return value() + " / " + objectType;
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ public record VpdPolicyCreateCommand(
|
||||
String objectOwner,
|
||||
String objectName,
|
||||
String policyName,
|
||||
String functionKey,
|
||||
String functionOwner,
|
||||
String functionName,
|
||||
String statementTypes,
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.vpd;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record VpdPolicyFormOptions(
|
||||
List<String> policyNames,
|
||||
List<String> owners,
|
||||
List<VpdFunctionOption> functions,
|
||||
List<String> statementTypes
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user