[Developer] #424 support object column row rules

Refs #424
This commit is contained in:
devmrko
2026-06-23 14:24:00 +09:00
parent 97bb0357f9
commit 09e25a2349
11 changed files with 197 additions and 31 deletions

View File

@@ -35,7 +35,10 @@ class PermissionServiceTest {
@Override
public List<ProtectedColumn> findColumns(long objectId) {
return List.of();
return List.of(
new ProtectedColumn(1L, 1L, "DEPT_CODE", "N", null),
new ProtectedColumn(2L, 1L, "OWNER_EMP_NO", "N", null)
);
}
};
permissionService = new PermissionService(permissionMapper, protectedObjectService, auditService);
@@ -47,7 +50,7 @@ class PermissionServiceTest {
10L,
1L,
"SELECT",
List.of(new RuleCommand("ALL", null), new RuleCommand("REGION", "APAC")),
List.of(new RuleCommand(null, "ALL", null), new RuleCommand("DEPT_CODE", "=", "APAC")),
List.of()
);
@@ -62,7 +65,7 @@ class PermissionServiceTest {
10L,
1L,
"SELECT",
List.of(new RuleCommand("CUSTOM_PREDICATE", "1=1")),
List.of(new RuleCommand("DEPT_CODE", "CUSTOM_PREDICATE", "1=1")),
List.of()
);