use of org.ovirt.engine.core.common.action.TerminateSessionParameters in project ovirt-engine by oVirt.
the class TerminateSessionsModel method onTerminate.
private void onTerminate() {
final List<ActionParametersBase> parameterList = new ArrayList<>(sessions.size());
for (UserSession session : sessions) {
final long sessionId = session.getId();
final TerminateSessionParameters terminateSessionParameters = new TerminateSessionParameters(sessionId);
parameterList.add(terminateSessionParameters);
}
Frontend.getInstance().runMultipleActions(ActionType.TerminateSession, parameterList, result -> sourceListModel.getSearchCommand().execute());
cancel();
}
Aggregations