fix #477: list vpd target objects
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.vpd;
|
||||
|
||||
public record VpdTargetView(
|
||||
String owner,
|
||||
String objectName,
|
||||
String objectType,
|
||||
String protectedYn,
|
||||
String ordsPath,
|
||||
int policyCount,
|
||||
String policyNames
|
||||
) {
|
||||
|
||||
public String objectDisplayName() {
|
||||
return owner + "." + objectName;
|
||||
}
|
||||
|
||||
public boolean protectedObject() {
|
||||
return "Y".equalsIgnoreCase(protectedYn);
|
||||
}
|
||||
|
||||
public boolean vpdApplied() {
|
||||
return policyCount > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user