use of org.ovirt.engine.core.bll.context.EngineContext in project ovirt-engine by oVirt.
the class CommandHelper method buildCommand.
public static CommandBase<?> buildCommand(ActionType actionType, ActionParametersBase parameters, ExecutionContext executionContext, CommandStatus cmdStatus) {
ExecutionContext cmdExecutionContext = executionContext == null ? new ExecutionContext() : executionContext;
CommandBase<?> command = CommandsFactory.createCommand(actionType, parameters, new CommandContext(new EngineContext()).withExecutionContext(cmdExecutionContext));
command.setCommandStatus(cmdStatus, false);
return command;
}
Aggregations