Child roles with annotated interfaces

I’m creating roles using annotated interfaces. How can I associate child roles with those interfaces?

If I create a role using the UI, I can add child roles via the UI. However, if the role is created via annotated interface, the UI will not allow me to add a child role at runtime; there is no “add” button.

My preference would be to create the roles and associate them with child roles at design time. I haven’t found anything in the documentation that would allow me to do that.

Thanks!

Hello!

At design time you can make inheritance in your roles. For instance:

@ResourceRole(name = "CustomAccessRole", code = "custom-access-role")
public interface CustomAccessRole extends DynamicAttributesRole, UiMinimalRole {
}
3 Likes

Thanks! I should have thought to have tried that. It works fine.