Package org.candlepin.model

Examples of org.candlepin.model.IdentityCertificateCurator


        // add an identity certificate for the export
        IdentityCertificate idCert = TestUtil.createIdCert();
        idCert.setId(null); // needs to be null to persist
        idCert.getSerial().setId(null)// needs to be null to persist
        certSerialCurator.create(idCert.getSerial());
        IdentityCertificateCurator idCurator =
            injector.getInstance(IdentityCertificateCurator.class);
        idCurator.create(idCert);
        consumer.setIdCert(idCert);

        consumer.setType(consumerTypeCurator.create(
            new ConsumerType(ConsumerTypeEnum.CANDLEPIN)));
        consumerCurator.update(consumer);
View Full Code Here

TOP

Related Classes of org.candlepin.model.IdentityCertificateCurator

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.