Package org.candlepin.model

Examples of org.candlepin.model.DerivedProductPoolAttribute


        // Copy sub-product data if there is any:
        if (sub.getDerivedProduct() != null) {
            p.setDerivedProductId(sub.getDerivedProduct().getId());
            p.setDerivedProductName(sub.getDerivedProduct().getName());
            for (ProductAttribute attr : sub.getDerivedProduct().getAttributes()) {
                p.addSubProductAttribute(new DerivedProductPoolAttribute(attr.getName(),
                    attr.getValue(), sub.getProduct().getId()));
            }
        }

        for (Product prod : sub.getProvidedProducts()) {
View Full Code Here


        Set<DerivedProductPoolAttribute> currentAttrs = pool.getDerivedProductAttributes();
        Set<DerivedProductPoolAttribute> incomingAttrs =
            new HashSet<DerivedProductPoolAttribute>();
        if (product != null) {
            for (Attribute attr : product.getAttributes()) {
                DerivedProductPoolAttribute newAttr = new DerivedProductPoolAttribute(
                    attr.getName(), attr.getValue(), product.getId());
                newAttr.setPool(pool);
                incomingAttrs.add(newAttr);
            }
        }

        if (!currentAttrs.equals(incomingAttrs)) {
View Full Code Here

TOP

Related Classes of org.candlepin.model.DerivedProductPoolAttribute

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.