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