1
0

refactor name extractors into entity classes

This commit is contained in:
Michael Hoennig
2022-09-13 14:54:57 +02:00
parent 8041553734
commit bc27e6dc89
14 changed files with 50 additions and 85 deletions

View File

@ -59,7 +59,10 @@ public class RbacGrantEntity {
}
public String toDisplay() {
return "{ grant " + (assumed ? "assumed " : "") +
"role " + grantedRoleIdName + " to user " + granteeUserName + " by role " + grantedByRoleIdName + " }";
return "{ grant role " + grantedRoleIdName +
" to user " + granteeUserName +
" by role " + grantedByRoleIdName +
(assumed ? " and assume" : "") +
" }";
}
}

View File

@ -20,16 +20,16 @@ public class RbacRoleEntity {
@Id
private UUID uuid;
@Column(name="objectuuid")
@Column(name = "objectuuid")
private UUID objectUuid;
@Column(name="objecttable")
@Column(name = "objecttable")
private String objectTable;
@Column(name="objectidname")
@Column(name = "objectidname")
private String objectIdName;
@Column(name="roletype")
@Column(name = "roletype")
@Enumerated(EnumType.STRING)
private RbacRoleType roleType;