Package org.candlepin.model

Examples of org.candlepin.model.ProductAttribute


                newPool.getBranding().add(new Branding(b.getProductId(), b.getType(),
                    b.getName()));
            }

            newPool.setSourceSubscription(new SourceSubscription(sub.getId(), "master"));
            ProductAttribute virtAtt = sub.getProduct().getAttribute("virt_only");

            // note: the product attributes are getting copied above, but the following will
            // make virt_only a pool attribute. That makes the pool explicitly virt_only to
            // subscription manager and any other downstream comsumer.
            if (virtAtt != null && virtAtt.getValue() != null &&
                !virtAtt.getValue().equals("")) {
                newPool.addAttribute(new org.candlepin.model.PoolAttribute("virt_only",
                    virtAtt.getValue()));
            }

            pools.add(newPool);
        }
View Full Code Here

TOP

Related Classes of org.candlepin.model.ProductAttribute

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.