Package org.rhq.core.domain.content

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


    @RequiredPermission(Permission.MANAGE_INVENTORY)
    public AdvisoryBuglist createAdvisoryBuglist(Subject user, Advisory advisory, String buginfo)
        throws AdvisoryException {
        log.debug("User [" + user + "] is creating AdvisoryCVE [" + advisory + "]");
        AdvisoryBuglist advbug = new AdvisoryBuglist(advisory, buginfo);

        entityManager.persist(advbug);
        return advbug;
    }
View Full Code Here


        query.setParameter("advId", advId);
        query.setParameter("buginfo", buginfo);

        try {
            AdvisoryBuglist result = (AdvisoryBuglist) query.getSingleResult();
            return result;
        } catch (NoResultException nre) {
            //Object not found, return null for new creation
            return null;
        }
View Full Code Here

                List<AdvisoryBugDetails> abugs = detail.getBugs();
                log.debug("list of Bugs " + abugs);
                if (abugs != null && abugs.size() > 0) {
                    for (AdvisoryBugDetails abug : abugs) {
                        AdvisoryBuglist abuglist = advManager.getAdvisoryBuglist(overlord, newAdv.getId(), abug
                            .getBugInfo());
                        if (abuglist == null) {
                            abuglist = new AdvisoryBuglist(newAdv, abug.getBugInfo());
                            entityManager.persist(abuglist);
                            entityManager.flush();
                        }
                    }
                }
View Full Code Here

TOP

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

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.