Package org.candlepin.gutterball.model.snapshot

Examples of org.candlepin.gutterball.model.snapshot.Entitlement


        int entQuantity = entJson.get("quantity").asInt();
        Date startDate = context.parseDate(poolJson.get("startDate").asText());
        Date endDate = context.parseDate(poolJson.get("endDate").asText());

        Entitlement ent = new Entitlement(entQuantity, startDate, endDate);
        ent.setProductId(getValue(poolJson, "productId"));
        ent.setDerivedProductId(getValue(poolJson, "derivedProductId"));
        ent.setProductName(getValue(poolJson, "productName"));
        ent.setDerivedProductName(getValue(poolJson, "derivedProductName"));
        ent.setRestrictedToUsername(getValue(poolJson, "restrictedToUsername"));
        ent.setContractNumber(getValue(poolJson, "contractNumber"));
        ent.setAccountNumber(getValue(poolJson, "accountNumber"));
        ent.setOrderNumber(getValue(poolJson, "orderNumber"));
        ent.setAttributes(getFlattenedProductAttributes(poolJson));
        //ent.setSourceEntitlement(getEntitlement(poolJson.get("sourceEntitlement"), context));
        ent.setProvidedProducts(flattenProvidedProducts(poolJson));
        ent.setDerivedProvidedProducts(flattenDerivedProvidedProducts(poolJson));
        ent.setDerivedProductAttributes(getDerivedProductAttributes(poolJson));

        return ent;
    }
View Full Code Here

TOP

Related Classes of org.candlepin.gutterball.model.snapshot.Entitlement

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.