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

项目: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   
private CustomizationUserData getCustomizationUserData(GuestInputs guestInputs) {
    CustomizationUserData userData = new CustomizationUserData();
    userData.setFullName(guestInputs.getOwnerName());
    userData.setOrgName(guestInputs.getOwnerOrganization());
    userData.setProductId(guestInputs.getProductKey());

    CustomizationFixedName computerName = new CustomizationFixedName();
    computerName.setName(guestInputs.getComputerName());
    userData.setComputerName(computerName);

    return userData;
}