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

项目: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 CustomizationGuiUnattended getGuiUnattended(GuestInputs guestInputs) {
    CustomizationGuiUnattended guiUnattended = new CustomizationGuiUnattended();
    guiUnattended.setAutoLogon(guestInputs.isAutoLogon());
    guiUnattended.setAutoLogonCount(guestInputs.getAutoLogonCount());
    guiUnattended.setTimeZone(guestInputs.getTimeZone());

    CustomizationPassword password = getCustomizationPassword(guestInputs.getComputerPassword());
    guiUnattended.setPassword(password);

    return guiUnattended;
}