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
 org.rhq.core.domain.content.Advisory createAdvisory(org.rhq.core.domain.auth.Subject user, String advisory, String advisoryType, String synopsis)
          Creates a new advisory in the system.
 org.rhq.core.domain.content.AdvisoryBuglist createAdvisoryBuglist(org.rhq.core.domain.auth.Subject user, org.rhq.core.domain.content.Advisory advisory, String buginfo)
           
 org.rhq.core.domain.content.AdvisoryCVE createAdvisoryCVE(org.rhq.core.domain.auth.Subject user, org.rhq.core.domain.content.Advisory advisory, org.rhq.core.domain.content.CVE cve)
          creates a AdvisoryCVE relationship object
 org.rhq.core.domain.content.AdvisoryPackage createAdvisoryPackage(org.rhq.core.domain.auth.Subject user, org.rhq.core.domain.content.Advisory advisory, org.rhq.core.domain.content.PackageVersion pkg)
          creates a AdvisoryPackage mapping object
 org.rhq.core.domain.content.CVE createCVE(org.rhq.core.domain.auth.Subject user, String cvename)
          creates a cve instance for a given cve name
 void deleteAdvisoryBugList(org.rhq.core.domain.auth.Subject user, int advId)
          Deletes a given instance of advisoryBuglist object.
 void deleteAdvisoryByAdvId(org.rhq.core.domain.auth.Subject user, int advId)
          Deletes a given instance of advisory object.
 void deleteAdvisoryCVE(org.rhq.core.domain.auth.Subject user, int advId)
          removes the AdvisoryCVE mapping
 void deleteAdvisoryPackage(org.rhq.core.domain.auth.Subject user, int advId)
          Deletes a given instance of advisoryPackage object.
 void deleteCVE(org.rhq.core.domain.auth.Subject user, int cveId)
          deletes specified cve object
 org.rhq.core.domain.content.AdvisoryPackage findAdvisoryPackage(org.rhq.core.domain.auth.Subject subject, int advId, int pkgVerId)
          find AdvisoryPackage object for given advId and packageVersion id
 org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.AdvisoryPackage> findPackageByAdvisory(org.rhq.core.domain.auth.Subject subject, int advId, org.rhq.core.domain.util.PageControl pc)
          find list of Packages associated to an advisory
 org.rhq.core.domain.content.PackageVersion findPackageVersionByPkgId(org.rhq.core.domain.auth.Subject subject, String rpmName, org.rhq.core.domain.util.PageControl pc)
          find list of Packages Versions associated to an advisory
 org.rhq.core.domain.content.AdvisoryBuglist getAdvisoryBuglist(org.rhq.core.domain.auth.Subject subject, int advId, String buginfo)
          Returns a Advisorybuglist object if exists else null
 List<org.rhq.core.domain.content.AdvisoryBuglist> getAdvisoryBuglistByAdvId(org.rhq.core.domain.auth.Subject subject, int advId)
          Returns a list of bugs for requested Advisory
 org.rhq.core.domain.content.Advisory getAdvisoryByName(String advlabel)
          find advisory by advisory name
 org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.AdvisoryCVE> getAdvisoryCVEByAdvId(org.rhq.core.domain.auth.Subject subject, int advId, org.rhq.core.domain.util.PageControl pc)
          Returns a list of available cves for requested Advisory
 long getCVECountFromAdv(org.rhq.core.domain.auth.Subject subject, int advId)
           
 long getPackageCountFromAdv(org.rhq.core.domain.auth.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 org.rhq.core.domain.content.Advisory createAdvisory(org.rhq.core.domain.auth.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 org.rhq.core.domain.content.CVE createCVE(org.rhq.core.domain.auth.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 org.rhq.core.domain.content.AdvisoryCVE createAdvisoryCVE(org.rhq.core.domain.auth.Subject user,
                                                                 org.rhq.core.domain.content.Advisory advisory,
                                                                 org.rhq.core.domain.content.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 org.rhq.core.domain.content.AdvisoryBuglist createAdvisoryBuglist(org.rhq.core.domain.auth.Subject user,
                                                                         org.rhq.core.domain.content.Advisory advisory,
                                                                         String buginfo)
                                                                  throws AdvisoryException
Throws:
AdvisoryException

createAdvisoryPackage

public org.rhq.core.domain.content.AdvisoryPackage createAdvisoryPackage(org.rhq.core.domain.auth.Subject user,
                                                                         org.rhq.core.domain.content.Advisory advisory,
                                                                         org.rhq.core.domain.content.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(org.rhq.core.domain.auth.Subject user,
                      int cveId)
Description copied from interface: AdvisoryManagerLocal
deletes specified cve object

Specified by:
deleteCVE in interface AdvisoryManagerLocal

deleteAdvisoryCVE

public void deleteAdvisoryCVE(org.rhq.core.domain.auth.Subject user,
                              int advId)
Description copied from interface: AdvisoryManagerLocal
removes the AdvisoryCVE mapping

Specified by:
deleteAdvisoryCVE in interface AdvisoryManagerLocal

deleteAdvisoryByAdvId

public void deleteAdvisoryByAdvId(org.rhq.core.domain.auth.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(org.rhq.core.domain.auth.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(org.rhq.core.domain.auth.Subject user,
                                  int advId)
Description copied from interface: AdvisoryManagerLocal
Deletes a given instance of advisoryBuglist object.

Specified by:
deleteAdvisoryBugList in interface AdvisoryManagerLocal

getAdvisoryByName

public org.rhq.core.domain.content.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 org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.AdvisoryPackage> findPackageByAdvisory(org.rhq.core.domain.auth.Subject subject,
                                                                                                            int advId,
                                                                                                            org.rhq.core.domain.util.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 org.rhq.core.domain.content.AdvisoryPackage findAdvisoryPackage(org.rhq.core.domain.auth.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 org.rhq.core.domain.content.PackageVersion findPackageVersionByPkgId(org.rhq.core.domain.auth.Subject subject,
                                                                            String rpmName,
                                                                            org.rhq.core.domain.util.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(org.rhq.core.domain.auth.Subject subject,
                                   int advId)

getAdvisoryCVEByAdvId

public org.rhq.core.domain.util.PageList<org.rhq.core.domain.content.AdvisoryCVE> getAdvisoryCVEByAdvId(org.rhq.core.domain.auth.Subject subject,
                                                                                                        int advId,
                                                                                                        org.rhq.core.domain.util.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(org.rhq.core.domain.auth.Subject subject,
                               int advId)

getAdvisoryBuglistByAdvId

public List<org.rhq.core.domain.content.AdvisoryBuglist> getAdvisoryBuglistByAdvId(org.rhq.core.domain.auth.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 org.rhq.core.domain.content.AdvisoryBuglist getAdvisoryBuglist(org.rhq.core.domain.auth.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-2012 Red Hat, Inc.. All Rights Reserved.