Another 1.5.x --> 2.x stopper: what happened to i.j.s.a.RoleGrantedAuthority.ofResourceRole etc?

So in trying to upgrade a small app of ours from Jmix 1.5.x to 2.x, I have this as a compilation stopper.

We make heavy use of io.jmix.security.authentication.RoleGrantedAuthority.ofResourceRole (and ofRowLevelRole) - these seem to be gone.

Were they moved, or replaced? We use this pretty commonly to set up default users on a new system.

Hello @modemmisuser ,

You can use the io.jmix.security.role.RoleGrantedAuthorityUtils bean.

RoleGrantedAuthority.ofResourceRole
RoleGrantedAuthorityUtils#createResourceRoleGrantedAuthority

RoleGrantedAuthority.ofRowLevelRole
RoleGrantedAuthorityUtils#createRowLevelRoleGrantedAuthority

Regards,
Nikita