Search in sources :

Example 6 with RoleEntity

use of org.keycloak.models.jpa.entities.RoleEntity in project keycloak by keycloak.

the class RoleAdapter method removeCompositeRole.

@Override
public void removeCompositeRole(RoleModel role) {
    RoleEntity entity = toRoleEntity(role);
    getEntity().getCompositeRoles().remove(entity);
}
Also used : RoleEntity(org.keycloak.models.jpa.entities.RoleEntity)

Aggregations

RoleEntity (org.keycloak.models.jpa.entities.RoleEntity)6 ModelDuplicateException (org.keycloak.models.ModelDuplicateException)2 ClientModel (org.keycloak.models.ClientModel)1 ModelException (org.keycloak.models.ModelException)1 RealmModel (org.keycloak.models.RealmModel)1