fix #493: add effective access matrix
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.effective;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record EffectiveMatrixView(
|
||||
List<UserEffectiveAccessView> users,
|
||||
List<GroupEffectiveAccessView> groups,
|
||||
List<RoleEffectiveImpactView> roles,
|
||||
int permissionCount
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.effective;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record GroupEffectiveAccessView(
|
||||
long groupId,
|
||||
String groupCode,
|
||||
String groupName,
|
||||
boolean active,
|
||||
List<String> users,
|
||||
List<String> roles,
|
||||
int permissionCount,
|
||||
List<String> objectNames
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.effective;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record RoleEffectiveImpactView(
|
||||
long roleId,
|
||||
String roleName,
|
||||
String maxSensitivityLevel,
|
||||
List<String> directUsers,
|
||||
List<String> groups,
|
||||
List<String> inheritedUsers,
|
||||
List<String> affectedUsers,
|
||||
int permissionCount,
|
||||
List<String> objectNames
|
||||
) {
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.cloudhandson.vpdbackoffice.domain.effective;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public record UserEffectiveAccessView(
|
||||
long userId,
|
||||
String username,
|
||||
String empNo,
|
||||
String deptCode,
|
||||
boolean active,
|
||||
List<String> directRoles,
|
||||
List<String> groups,
|
||||
List<String> inheritedRoles,
|
||||
List<String> effectiveRoles,
|
||||
int permissionCount,
|
||||
List<String> objectNames
|
||||
) {
|
||||
}
|
||||
Reference in New Issue
Block a user