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

项目:cs-actions    文件:GuestConfigSpecs.java   
private CustomizationSysprep getPopulatedCustomizationSysprep(GuestInputs guestInputs) {
    CustomizationSysprep customizationSysprep = new CustomizationSysprep();

    CustomizationGuiUnattended guiUnattended = getGuiUnattended(guestInputs);
    customizationSysprep.setGuiUnattended(guiUnattended);

    CustomizationIdentification identification = getCustomizationIdentification(guestInputs);
    customizationSysprep.setIdentification(identification);

    if (StringUtils.isNotBlank(guestInputs.getLicenseDataMode())) {
        CustomizationLicenseFilePrintData licenseFilePrintData = getCustomizationLicenseFilePrintData(guestInputs);
        customizationSysprep.setLicenseFilePrintData(licenseFilePrintData);
    }

    return customizationSysprep;
}
项目:cs-actions    文件:GuestConfigSpecs.java   
private CustomizationSysprep getCustomizationSysprep(GuestInputs guestInputs) {
    CustomizationSysprep customizationSysprep = getPopulatedCustomizationSysprep(guestInputs);

    CustomizationUserData userData = getCustomizationUserData(guestInputs);
    customizationSysprep.setUserData(userData);

    return customizationSysprep;
}
项目: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;
}