org.rhq.enterprise.server.content
Interface AdvisoryManagerLocal

All Known Implementing Classes:
AdvisoryManagerBean

public interface AdvisoryManagerLocal

Author:
Pradeep Kilambi

Method Summary
 Advisory createAdvisory(Subject subject, String advisory, String advisoryType, String synopsis)
          Creates a new advisory in the system.
 AdvisoryCVE createAdvisoryCVE(Subject subject, Advisory advisory, CVE cve)
          creates a AdvisoryCVE relationship object
 AdvisoryPackage createAdvisoryPackage(Subject subject, Advisory advisory, PackageVersion packageVersion)
          creates a AdvisoryPackage mapping object
 CVE createCVE(Subject subject, String cvename)
          creates a cve instance for a given cve name
 void deleteAdvisoryBugList(Subject overlord, int id)
          Deletes a given instance of advisoryBuglist object.
 void deleteAdvisoryByAdvId(Subject subject, int advId)
          Deletes a given instance of advisory object.
 void deleteAdvisoryCVE(Subject subject, int advId)
          removes the AdvisoryCVE mapping
 void deleteAdvisoryPackage(Subject subject, int advId)
          Deletes a given instance of advisoryPackage object.
 void deleteCVE(Subject subject, int cveId)
          deletes specified cve object
 AdvisoryPackage findAdvisoryPackage(Subject overlord, int advId, int pkgVerId)
          find AdvisoryPackage object for given advId and packageVersion id
 PageList<AdvisoryPackage> findPackageByAdvisory(Subject subject, int advId, PageControl pc)
          find packages associated for a given advisory
 PackageVersion findPackageVersionByPkgId(Subject subject, String rpmName, PageControl pc)
          find packages associated for a given package
 AdvisoryBuglist getAdvisoryBuglist(Subject subject, int advId, String buginfo)
          find AdvisoryBuglist object for given advId and buginfo
 List<AdvisoryBuglist> getAdvisoryBuglistByAdvId(Subject subject, int advId)
          find bugs associated to a given advisory
 Advisory getAdvisoryByName(String advlabel)
          find advisory by advisory name
 PageList<AdvisoryCVE> getAdvisoryCVEByAdvId(Subject subject, int advId, PageControl pc)
          find CVEs associated to a given advisory
 

Method Detail

createAdvisory

Advisory createAdvisory(Subject subject,
                        String advisory,
                        String advisoryType,
                        String synopsis)
                        throws AdvisoryException
Creates a new advisory in the system. If the advisory does not exist, it will be created. If a advisory exists with the specified version ID, a new one will not be created and the existing advisory will be returned.

Parameters:
subject -
advisory - advisory label
advisoryType - adv type
Returns:
newly created advisory object
Throws:
AdvisoryException

createCVE

CVE createCVE(Subject subject,
              String cvename)
              throws AdvisoryException
creates a cve instance for a given cve name

Parameters:
user -
cvename -
Returns:
a CVE object
Throws:
AdvisoryException

createAdvisoryCVE

AdvisoryCVE createAdvisoryCVE(Subject subject,
                              Advisory advisory,
                              CVE cve)
                              throws AdvisoryException
creates a AdvisoryCVE relationship object

Parameters:
user -
advisory -
cve -
Returns:
AdvisoryCVE object
Throws:
AdvisoryException

createAdvisoryPackage

AdvisoryPackage createAdvisoryPackage(Subject subject,
                                      Advisory advisory,
                                      PackageVersion packageVersion)
                                      throws AdvisoryException
creates a AdvisoryPackage mapping object

Parameters:
user -
advisory -
pkg -
Returns:
AdvisoryPackage object
Throws:
AdvisoryException

deleteCVE

void deleteCVE(Subject subject,
               int cveId)
deletes specified cve object

Parameters:
user -
cveId -

deleteAdvisoryCVE

void deleteAdvisoryCVE(Subject subject,
                       int advId)
removes the AdvisoryCVE mapping

Parameters:
user -
advId -

deleteAdvisoryByAdvId

void deleteAdvisoryByAdvId(Subject subject,
                           int advId)
Deletes a given instance of advisory object.

Parameters:
user -
advId -

getAdvisoryByName

Advisory getAdvisoryByName(String advlabel)
find advisory by advisory name

Parameters:
advlabel -
Returns:
advisory object for a given name

findPackageByAdvisory

PageList<AdvisoryPackage> findPackageByAdvisory(Subject subject,
                                                int advId,
                                                PageControl pc)
find packages associated for a given advisory

Parameters:
subject -
advId -
pc -
Returns:
a list of package objects

findPackageVersionByPkgId

PackageVersion findPackageVersionByPkgId(Subject subject,
                                         String rpmName,
                                         PageControl pc)
find packages associated for a given package

Parameters:
subject -
pkgId -
pc -
Returns:
a list of packageversion objects

getAdvisoryCVEByAdvId

PageList<AdvisoryCVE> getAdvisoryCVEByAdvId(Subject subject,
                                            int advId,
                                            PageControl pc)
find CVEs associated to a given advisory

Parameters:
subject -
advId -
pc -
Returns:
CVE objects associated to a given advisory

getAdvisoryBuglistByAdvId

List<AdvisoryBuglist> getAdvisoryBuglistByAdvId(Subject subject,
                                                int advId)
find bugs associated to a given advisory

Parameters:
subject -
advId -
Returns:
list of AdvisoryBuglist objects

deleteAdvisoryBugList

void deleteAdvisoryBugList(Subject overlord,
                           int id)
Deletes a given instance of advisoryBuglist object.

Parameters:
user -
advId -

deleteAdvisoryPackage

void deleteAdvisoryPackage(Subject subject,
                           int advId)
Deletes a given instance of advisoryPackage object.

Parameters:
user -
advId -

findAdvisoryPackage

AdvisoryPackage findAdvisoryPackage(Subject overlord,
                                    int advId,
                                    int pkgVerId)
find AdvisoryPackage object for given advId and packageVersion id

Parameters:
overlord -
advId -
pkgVerId -

getAdvisoryBuglist

AdvisoryBuglist getAdvisoryBuglist(Subject subject,
                                   int advId,
                                   String buginfo)
find AdvisoryBuglist object for given advId and buginfo

Parameters:
subject -
advId -
buginfo -
Returns:


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.