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; }
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; }