use of org.ovirt.engine.core.common.action.CloneVmParameters in project ovirt-engine by oVirt.
the class CloneVmModel method postCloneVmNameUnique.
private void postCloneVmNameUnique(final Model targetModel, boolean makeCreatorExplicitOwner) {
CloneVmParameters params = new CloneVmParameters(getVm(), getCloneName().getEntity());
params.setMakeCreatorExplicitOwner(makeCreatorExplicitOwner);
Frontend.getInstance().runAction(ActionType.CloneVm, params, result -> {
stopProgress();
targetModel.setWindow(null);
}, this);
}
use of org.ovirt.engine.core.common.action.CloneVmParameters in project ovirt-engine by oVirt.
the class BackendVmResource method doClone.
@Override
public Response doClone(Action action) {
validateParameters(action, "vm.name");
org.ovirt.engine.core.common.businessentities.VM vm = getEntity(org.ovirt.engine.core.common.businessentities.VM.class, QueryType.GetVmByVmId, new IdQueryParameters(guid), "VM: id=" + guid);
CloneVmParameters cloneVmParameters = new CloneVmParameters(vm, action.getVm().getName());
cloneVmParameters.setMakeCreatorExplicitOwner(isFiltered());
Response response = doAction(ActionType.CloneVm, cloneVmParameters, action);
return response;
}
Aggregations