Package org.rhq.core.domain.content

Examples of org.rhq.core.domain.content.CVE


        Advisory advobject = new Advisory(advisory, advisoryType, synopsis);
        entityManager.persist(advobject);
        int id1 = advobject.getId();
        entityManager.flush();

        CVE cve = advManager.createCVE(overlord, "CAN-2009:1203");
        AdvisoryCVE advisory_cve = advManager.createAdvisoryCVE(overlord, advobject, cve);

        PageList<AdvisoryCVE> cvelist = advManager.getAdvisoryCVEByAdvId(overlord, id1, PageControl
            .getUnlimitedInstance());

        assert cvelist != null;
        assert cvelist.size() != 0;
        advManager.deleteAdvisoryCVE(overlord, id1);
        advManager.deleteCVE(overlord, cve.getId());
        advManager.deleteAdvisoryByAdvId(overlord, advobject.getId());
        advobject = advManager.getAdvisoryByName(advobject.getAdvisory());
        assert advobject == null;

    }
View Full Code Here


    }

    @RequiredPermission(Permission.MANAGE_INVENTORY)
    public CVE createCVE(Subject user, String cvename) throws AdvisoryException {
        log.debug("User [" + user + "] is creating CVE [" + cvename + "]");
        CVE cve = new CVE(cvename);

        entityManager.persist(cve);
        return cve;

    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.content.CVE

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.