Search in sources :

Example 1 with CreateAllTemplateDisksParameters

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

the class AddVmTemplateCommand method buildCreateAllTemplateDisksParameters.

private CreateAllTemplateDisksParameters buildCreateAllTemplateDisksParameters() {
    CreateAllTemplateDisksParameters parameters = new CreateAllTemplateDisksParameters(getVm() != null ? getVmId() : Guid.Empty);
    parameters.setVmTemplateId(getVmTemplateId());
    parameters.setVmTemplateName(getVmTemplateName());
    parameters.setDiskInfoDestinationMap(diskInfoDestinationMap);
    parameters.setTargetDiskIds(targetDiskIds);
    if (getParameters().isSealTemplate()) {
        parameters.setCopyVolumeType(CopyVolumeType.LeafVol);
    }
    parameters.setParentCommand(getActionType());
    parameters.setParentParameters(getParameters());
    parameters.setEndProcedure(EndProcedure.COMMAND_MANAGED);
    return parameters;
}
Also used : CreateAllTemplateDisksParameters(org.ovirt.engine.core.common.action.CreateAllTemplateDisksParameters)

Aggregations

CreateAllTemplateDisksParameters (org.ovirt.engine.core.common.action.CreateAllTemplateDisksParameters)1