Search in sources :

Example 1 with RolesParameterBase

use of org.ovirt.engine.core.common.action.RolesParameterBase in project ovirt-engine by oVirt.

the class RoleListModel method onRemove.

public void onRemove() {
    for (Object item : getSelectedItems()) {
        Role role = (Role) item;
        Frontend.getInstance().runAction(ActionType.RemoveRole, new RolesParameterBase(role.getId()));
    }
    cancel();
    // Execute search to keep list updated.
    getSearchCommand().execute();
}
Also used : Role(org.ovirt.engine.core.common.businessentities.Role) RolesParameterBase(org.ovirt.engine.core.common.action.RolesParameterBase)

Aggregations

RolesParameterBase (org.ovirt.engine.core.common.action.RolesParameterBase)1 Role (org.ovirt.engine.core.common.businessentities.Role)1