Package org.candlepin.model

Examples of org.candlepin.model.Pool.addAttribute()


    }

    private Pool setupPhysOnlyPool() {
        Product product = new Product(productId, "physical only product");
        Pool pool = TestUtil.createPool(owner, product);
        pool.addAttribute(new PoolAttribute("physical_only", "true"));
        pool.setId("fakeid" + TestUtil.randomInt());
        when(this.prodAdapter.getProductById(productId)).thenReturn(product);
        return pool;
    }
View Full Code Here


            // 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
Copyright © 2018 www.massapi.com. 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.