Package com.abiquo.model.enumerator

Examples of com.abiquo.model.enumerator.OSType


        return product;
    }
   
    private static OperatingSystemSectionType createOperatingSystemSection(final TemplateDto disk)
    {
        final OSType type = disk.getOsType() != null ? disk.getOsType(): OSType.OTHER_64;
        final OperatingSystemSectionType ossection = new OperatingSystemSectionType();
        ossection.setId(type.getCode());
        ossection.setVersion(disk.getOsVersion());
        ossection.setDescription(CIMTypesUtils.createMsg(type.getDescription(), null));
        return ossection;
    }
View Full Code Here


        return product;
    }

    private static OperatingSystemSectionType createOperatingSystemSection(final TemplateDto disk)
    {
        final OSType type =
            getIfPresent(OSType.class, Objects.firstNonNull(disk.getOsType(), "").toUpperCase())
                .or(OSType.OTHER_64);
        final OperatingSystemSectionType ossection = new OperatingSystemSectionType();
        ossection.setId(type.getCode());
        ossection.setVersion(disk.getOsVersion());
        ossection.setDescription(CIMTypesUtils.createMsg(type.getDescription(), null));
        return ossection;
    }
View Full Code Here

        return product;
    }

    private static OperatingSystemSectionType createOperatingSystemSection(final TemplateDto disk)
    {
        final OSType type =
            getIfPresent(OSType.class, Objects.firstNonNull(disk.getOsType(), "").toUpperCase())
                .or(OSType.OTHER_64);
        final OperatingSystemSectionType ossection = new OperatingSystemSectionType();
        ossection.setId(type.getCode());
        ossection.setVersion(disk.getOsVersion());
        ossection.setDescription(CIMTypesUtils.createMsg(type.getDescription(), null));
        return ossection;
    }
View Full Code Here

TOP

Related Classes of com.abiquo.model.enumerator.OSType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.