Java 类com.vmware.vim25.CustomizationWinOptions 实例源码

项目:cs-actions    文件:GuestConfigSpecs.java   
private CustomizationWinOptions getCustomizationWinOptions(GuestInputs guestInputs) {
    CustomizationWinOptions winOptions = new CustomizationWinOptions();
    winOptions.setDeleteAccounts(guestInputs.isDeleteAccounts());
    winOptions.setChangeSID(guestInputs.isChangeSID());

    if (StringUtils.isNotBlank(guestInputs.getRebootOption())) {
        CustomizationSysprepRebootOption rebootOption = CustomizationSysprepRebootOption
                .fromValue(guestInputs.getRebootOption());
        winOptions.setReboot(rebootOption);
    }

    return winOptions;
}
项目:cs-actions    文件:GuestConfigSpecs.java   
public CustomizationSpec getWinCustomizationSpec(GuestInputs guestInputs) {
    CustomizationSpec customizationSpec = new CustomizationSpec();

    CustomizationSysprep customizationSysprep = getCustomizationSysprep(guestInputs);
    customizationSpec.setIdentity(customizationSysprep);

    CustomizationWinOptions winOptions = getCustomizationWinOptions(guestInputs);
    customizationSpec.setOptions(winOptions);

    customizationSpec.setGlobalIPSettings(new CustomizationGlobalIPSettings());

    setAdapter(guestInputs, customizationSpec);

    return customizationSpec;
}