Package org.candlepin.resource.util

Examples of org.candlepin.resource.util.ConsumerInstalledProductEnricher


    private void addDataToInstalledProducts(Consumer consumer) {

        ComplianceStatus complianceStatus = complianceRules.getStatus(
                           consumer, null, false);

        ConsumerInstalledProductEnricher enricher = new ConsumerInstalledProductEnricher(
            consumer, complianceStatus, complianceRules);

        for (ConsumerInstalledProduct cip : consumer.getInstalledProducts()) {
            String prodId = cip.getProductId();
            Product prod = productAdapter.getProductById(prodId);
            if (prod != null) {
                enricher.enrich(cip, prod);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.candlepin.resource.util.ConsumerInstalledProductEnricher

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.