Package org.candlepin.json.model

Examples of org.candlepin.json.model.EntitlementBody


        Entitlement ent, String contentPrefix,
        Map<String, EnvironmentContent> promotedContent) throws IOException {
        Set<X509ByteExtensionWrapper> toReturn =
            new LinkedHashSet<X509ByteExtensionWrapper>();

        EntitlementBody eb = createEntitlementBodyContent(products, ent,
            contentPrefix, promotedContent);

        X509ByteExtensionWrapper bodyExtension =
            new X509ByteExtensionWrapper(OIDUtil.REDHAT_OID + "." +
                OIDUtil.TOPLEVEL_NAMESPACES.get(OIDUtil.ENTITLEMENT_DATA_KEY),
View Full Code Here


    public byte[] createEntitlementDataPayload(Set<Product> products,
        Entitlement ent, String contentPrefix,
        Map<String, EnvironmentContent> promotedContent)
        throws UnsupportedEncodingException, IOException {

        EntitlementBody map = createEntitlementBody(products, ent,
            contentPrefix, promotedContent);

        String json = toJson(map);
        return processPayload(json);
    }
View Full Code Here

    public EntitlementBody createEntitlementBody(Set<Product> products,
        Entitlement ent, String contentPrefix,
        Map<String, EnvironmentContent> promotedContent) {

        EntitlementBody toReturn = new EntitlementBody();
        toReturn.setConsumer(ent.getConsumer().getUuid());
        toReturn.setQuantity(ent.getQuantity());
        toReturn.setSubscription(createSubscription(ent));
        toReturn.setOrder(createOrder(ent.getPool()));
        toReturn.setProducts(createProducts(products, contentPrefix, promotedContent,
            ent.getConsumer(), ent));
        toReturn.setPool(createPool(ent));

        return toReturn;
    }
View Full Code Here

    public EntitlementBody createEntitlementBodyContent(Set<Product> products,
        Entitlement ent, String contentPrefix,
        Map<String, EnvironmentContent> promotedContent) {

        EntitlementBody toReturn = new EntitlementBody();
        toReturn.setProducts(createProducts(products, contentPrefix, promotedContent,
            ent.getConsumer(), ent));

        return toReturn;
    }
View Full Code Here

TOP

Related Classes of org.candlepin.json.model.EntitlementBody

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.