Reviewer 역할 검증 보고서 smoke (runtime-role-matrix-live-20260714101723-v7-reviewer-001)
This commit is contained in:
parent
ae9c588f50
commit
f51456868b
1 changed files with 46 additions and 0 deletions
46
src/main/java/com/klaroworks/runtime/role/Nested.java
Normal file
46
src/main/java/com/klaroworks/runtime/role/Nested.java
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
package com.klaroworks.runtime.role;
|
||||
|
||||
/**
|
||||
* Nested class definition for role testing.
|
||||
* Used by RoleMatrixRuntimeTest for nested class access testing.
|
||||
*/
|
||||
public class Nested {
|
||||
|
||||
public static class InnerRole {
|
||||
private final String roleName;
|
||||
private final int priority;
|
||||
|
||||
public InnerRole(String roleName, int priority) {
|
||||
this.roleName = roleName;
|
||||
this.priority = priority;
|
||||
}
|
||||
|
||||
public String getRoleName() {
|
||||
return roleName;
|
||||
}
|
||||
|
||||
public int getPriority() {
|
||||
return priority;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InnerRole{roleName='" + roleName + "', priority=" + priority + "}";
|
||||
}
|
||||
}
|
||||
|
||||
public static class RoleLevel {
|
||||
public static final int ADMIN = 100;
|
||||
public static final int MANAGER = 50;
|
||||
public static final int USER = 10;
|
||||
public static final int GUEST = 1;
|
||||
|
||||
private RoleLevel() {
|
||||
// Prevent instantiation
|
||||
}
|
||||
}
|
||||
|
||||
public static InnerRole createRole(String name, int priority) {
|
||||
return new InnerRole(name, priority);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue