Package org.dmtf.schemas.ovf.envelope._1

Examples of org.dmtf.schemas.ovf.envelope._1.MsgType


            String vsystemName =
                vsystem.getName() != null && !StringUtils.isEmpty(vsystem.getName().getValue())
                    ? vsystem.getName().getValue() : vsystem.getId();

            MsgType prod = new MsgType();
            prod.setValue(vsystemName);

            ProductSectionType product = new ProductSectionType();
            product.setInfo(vsystem.getInfo());
            product.setProduct(prod);
View Full Code Here


            String vsystemName =
                vsystem.getName() != null && vsystem.getName().getValue() != null ? vsystem
                    .getName().getValue() : vsystem.getId();

            MsgType prod = new MsgType();
            prod.setValue(vsystemName);

            ProductSectionType product = new ProductSectionType();
            product.setInfo(vsystem.getInfo());
            product.setProduct(prod);
View Full Code Here

            String vsystemName =
                vsystem.getName() != null && vsystem.getName().getValue() != null ? vsystem
                    .getName().getValue() : vsystem.getId();

            MsgType prod = new MsgType();
            prod.setValue(vsystemName);

            ProductSectionType product = new ProductSectionType();
            product.setInfo(vsystem.getInfo());
            product.setProduct(prod);
View Full Code Here

            String vsystemName =
                vsystem.getName() != null && vsystem.getName().getValue() != null ? vsystem
                    .getName().getValue() : vsystem.getId();

            MsgType prod = new MsgType();
            prod.setValue(vsystemName);

            ProductSectionType product = new ProductSectionType();
            product.setInfo(vsystem.getInfo());
            product.setProduct(prod);
View Full Code Here

        {
            ContentType contentType = OVFEnvelopeUtils.getTopLevelVirtualSystemContent(envelope);

            ProductSectionType product =
                OVFEnvelopeUtils.getSection(contentType, ProductSectionType.class);
            OperatingSystemSectionType ossection = null;
            try
            {
                ossection =
                    OVFEnvelopeUtils.getSection(contentType, OperatingSystemSectionType.class);
            }
View Full Code Here

            OVFReferenceUtils.addFile(references, fileRef);

            DiskSectionType diskSection = createDiskSection(template);
            VirtualSystemType vsystem = createVirtualSystem(template);
            ProductSectionType product = createProductSection(template);
            OperatingSystemSectionType ossection = createOperatingSystemSection(template);

            OVFEnvelopeUtils.addSection(vsystem, product);           
            OVFEnvelopeUtils.addSection(vsystem, ossection);
            OVFEnvelopeUtils.addSection(envelope, diskSection);
            OVFEnvelopeUtils.addVirtualSystem(envelope, vsystem);
View Full Code Here

    }
   
    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

            OVFReferenceUtils.addFile(references, fileRef);

            DiskSectionType diskSection = createDiskSection(template);
            VirtualSystemType vsystem = createVirtualSystem(template);
            ProductSectionType product = createProductSection(template);
            OperatingSystemSectionType ossection = createOperatingSystemSection(template);

            OVFEnvelopeUtils.addSection(vsystem, product);
            OVFEnvelopeUtils.addSection(vsystem, ossection);
            OVFEnvelopeUtils.addSection(envelope, diskSection);
            OVFEnvelopeUtils.addVirtualSystem(envelope, vsystem);
View Full Code Here

    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

        {
            ContentType contentType = OVFEnvelopeUtils.getTopLevelVirtualSystemContent(envelope);

            ProductSectionType product =
                OVFEnvelopeUtils.getSection(contentType, ProductSectionType.class);
            OperatingSystemSectionType ossection = null;
            try
            {
                ossection =
                    OVFEnvelopeUtils.getSection(contentType, OperatingSystemSectionType.class);
            }
View Full Code Here

TOP

Related Classes of org.dmtf.schemas.ovf.envelope._1.MsgType

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.