Search in sources :

Example 11 with RoleGroupMap

use of org.ovirt.engine.core.common.businessentities.RoleGroupMap in project ovirt-engine by oVirt.

the class RolesCommandBase method getActionGroupsByRoleId.

protected List<ActionGroup> getActionGroupsByRoleId(Guid roleId) {
    List<ActionGroup> allGroups = new ArrayList<>();
    List<RoleGroupMap> allGroupsMaps = roleGroupMapDao.getAllForRole(roleId);
    for (RoleGroupMap map : allGroupsMaps) {
        allGroups.add(map.getActionGroup());
    }
    return allGroups;
}
Also used : ActionGroup(org.ovirt.engine.core.common.businessentities.ActionGroup) RoleGroupMap(org.ovirt.engine.core.common.businessentities.RoleGroupMap) ArrayList(java.util.ArrayList)

Aggregations

RoleGroupMap (org.ovirt.engine.core.common.businessentities.RoleGroupMap)11 Test (org.junit.Test)7 ArrayList (java.util.ArrayList)5 ActionGroup (org.ovirt.engine.core.common.businessentities.ActionGroup)3 Role (org.ovirt.engine.core.common.businessentities.Role)1