org.rhq.enterprise.server.content
Class AdvisoryManagerBean

java.lang.Object
  extended by org.rhq.enterprise.server.content.AdvisoryManagerBean
All Implemented Interfaces:
AdvisoryManagerLocal

public class AdvisoryManagerBean
extends Object
implements AdvisoryManagerLocal

Author:
Pradeep Kilambi

Constructor Summary
AdvisoryManagerBean()
           
 
Method Summary
 Advisory createAdvisory(Subject user, String advisory, String advisoryType, String synopsis)
          Creates a new advisory in the system.
 AdvisoryBuglist createAdvisoryBuglist(Subject user, Advisory advisory, String buginfo)
           
 AdvisoryCVE createAdvisoryCVE(Subject user, Advisory advisory, CVE cve)
          creates a AdvisoryCVE relationship object
 AdvisoryPackage createAdvisoryPackage(Subject user, Advisory advisory, PackageVersion pkg)
          creates a AdvisoryPackage mapping object
 CVE createCVE(Subject user, String cvename)
          creates a cve instance for a given cve name
 void deleteAdvisoryBugList(Subject user, int advId)
          Deletes a given instance of advisoryBuglist object.
 void deleteAdvisoryByAdvId(Subject user, int advId)
          Deletes a given instance of advisory object.
 void deleteAdvisoryCVE(Subject user, int advId)
          removes the AdvisoryCVE mapping
 void deleteAdvisoryPackage(Subject user, int advId)
          Deletes a given instance of advisoryPackage object.
 void deleteCVE(Subject user, int cveId)
          deletes specified cve object
 AdvisoryPackage findAdvisoryPackage(Subject subject, int advId, int pkgVerId)
          find AdvisoryPackage object for given advId and packageVersion id
 PageList<AdvisoryPackage> findPackageByAdvisory(Subject subject, int advId, PageControl pc)
          find list of Packages associated to an advisory
 PackageVersion findPackageVersionByPkgId(Subject subject, String rpmName, PageControl pc)
          find list of Packages Versions associated to an advisory
 AdvisoryBuglist getAdvisoryBuglist(Subject subject, int advId, String buginfo)
          Returns a Advisorybuglist object if exists else null
 List<AdvisoryBuglist> getAdvisoryBuglistByAdvId(Subject subject, int advId)
          Returns a list of bugs for requested Advisory
 Advisory getAdvisoryByName(String advlabel)
          find advisory by advisory name
 PageList<AdvisoryCVE> getAdvisoryCVEByAdvId(Subject subject, int advId, PageControl pc)
          Returns a list of available cves for requested Advisory
 long getCVECountFromAdv(Subject subject, int advId)
           
 long getPackageCountFromAdv(Subject subject, int advId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvisoryManagerBean

public AdvisoryManagerBean()
Method Detail

createAdvisory

public Advisory createAdvisory(Subject user,
                               String advisory,
                               String advisoryType,
                               String synopsis)
                        throws AdvisoryException
Description copied from interface: AdvisoryManagerLocal
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.

Specified by:
createAdvisory in interface AdvisoryManagerLocal
advisory - advisory label
advisoryType - adv type
Returns:
newly created advisory object
Throws:
AdvisoryException

createCVE

public CVE createCVE(Subject user,
                     String cvename)
              throws AdvisoryException
Description copied from interface: AdvisoryManagerLocal
creates a cve instance for a given cve name

Specified by:
createCVE in interface AdvisoryManagerLocal
Returns:
a CVE object
Throws:
AdvisoryException

createAdvisoryCVE

public AdvisoryCVE createAdvisoryCVE(Subject user,
                                     Advisory advisory,
                                     CVE cve)
                              throws AdvisoryException
Description copied from interface: AdvisoryManagerLocal
creates a AdvisoryCVE relationship object

Specified by:
createAdvisoryCVE in interface AdvisoryManagerLocal
Returns:
AdvisoryCVE object
Throws:
AdvisoryException

createAdvisoryBuglist

public AdvisoryBuglist createAdvisoryBuglist(Subject user,
                                             Advisory advisory,
                                             String buginfo)
                                      throws AdvisoryException
Throws:
AdvisoryException

createAdvisoryPackage

public AdvisoryPackage createAdvisoryPackage(Subject user,
                                             Advisory advisory,
                                             PackageVersion pkg)
                                      throws AdvisoryException
Description copied from interface: AdvisoryManagerLocal
creates a AdvisoryPackage mapping object

Specified by:
createAdvisoryPackage in interface AdvisoryManagerLocal
Returns:
AdvisoryPackage object
Throws:
AdvisoryException

deleteCVE

public void deleteCVE(Subject user,
                      int cveId)
Description copied from interface: AdvisoryManagerLocal
deletes specified cve object

Specified by:
deleteCVE in interface AdvisoryManagerLocal

deleteAdvisoryCVE

public void deleteAdvisoryCVE(Subject user,
                              int advId)
Description copied from interface: AdvisoryManagerLocal
removes the AdvisoryCVE mapping

Specified by:
deleteAdvisoryCVE in interface AdvisoryManagerLocal

deleteAdvisoryByAdvId

public void deleteAdvisoryByAdvId(Subject user,
                                  int advId)
Description copied from interface: AdvisoryManagerLocal
Deletes a given instance of advisory object.

Specified by:
deleteAdvisoryByAdvId in interface AdvisoryManagerLocal

deleteAdvisoryPackage

public void deleteAdvisoryPackage(Subject user,
                                  int advId)
Description copied from interface: AdvisoryManagerLocal
Deletes a given instance of advisoryPackage object.

Specified by:
deleteAdvisoryPackage in interface AdvisoryManagerLocal

deleteAdvisoryBugList

public void deleteAdvisoryBugList(Subject user,
                                  int advId)
Description copied from interface: AdvisoryManagerLocal
Deletes a given instance of advisoryBuglist object.

Specified by:
deleteAdvisoryBugList in interface AdvisoryManagerLocal

getAdvisoryByName

public Advisory getAdvisoryByName(String advlabel)
Description copied from interface: AdvisoryManagerLocal
find advisory by advisory name

Specified by:
getAdvisoryByName in interface AdvisoryManagerLocal
Returns:
advisory object for a given name

findPackageByAdvisory

public PageList<AdvisoryPackage> findPackageByAdvisory(Subject subject,
                                                       int advId,
                                                       PageControl pc)
find list of Packages associated to an advisory

Specified by:
findPackageByAdvisory in interface AdvisoryManagerLocal
Parameters:
advId - advisoryId
Returns:
list of Package objects

findAdvisoryPackage

public AdvisoryPackage findAdvisoryPackage(Subject subject,
                                           int advId,
                                           int pkgVerId)
Description copied from interface: AdvisoryManagerLocal
find AdvisoryPackage object for given advId and packageVersion id

Specified by:
findAdvisoryPackage in interface AdvisoryManagerLocal
Parameters:
advId - advisoryId
Returns:
an advisorypackage object if exists else null

findPackageVersionByPkgId

public PackageVersion findPackageVersionByPkgId(Subject subject,
                                                String rpmName,
                                                PageControl pc)
find list of Packages Versions associated to an advisory

Specified by:
findPackageVersionByPkgId in interface AdvisoryManagerLocal
Returns:
list of PackageVersion objects

getPackageCountFromAdv

public long getPackageCountFromAdv(Subject subject,
                                   int advId)

getAdvisoryCVEByAdvId

public PageList<AdvisoryCVE> getAdvisoryCVEByAdvId(Subject subject,
                                                   int advId,
                                                   PageControl pc)
Returns a list of available cves for requested Advisory

Specified by:
getAdvisoryCVEByAdvId in interface AdvisoryManagerLocal
Parameters:
advId -
Returns:
A list of CVE objects associated to a given Advisory

getCVECountFromAdv

public long getCVECountFromAdv(Subject subject,
                               int advId)

getAdvisoryBuglistByAdvId

public List<AdvisoryBuglist> getAdvisoryBuglistByAdvId(Subject subject,
                                                       int advId)
Returns a list of bugs for requested Advisory

Specified by:
getAdvisoryBuglistByAdvId in interface AdvisoryManagerLocal
Parameters:
advId -
Returns:
A list of AdvisoryBuglist objects

getAdvisoryBuglist

public AdvisoryBuglist getAdvisoryBuglist(Subject subject,
                                          int advId,
                                          String buginfo)
Returns a Advisorybuglist object if exists else null

Specified by:
getAdvisoryBuglist in interface AdvisoryManagerLocal
Parameters:
advId -
buginfo -
Returns:
A AdvisoryBuglist objects


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