org.rhq.enterprise.server.content
Interface AdvisoryManagerLocal

All Known Implementing Classes:
AdvisoryManagerBean

public interface AdvisoryManagerLocal

Author:
Pradeep Kilambi

Method Summary
 org.rhq.core.domain.content.Advisory createAdvisory(org.rhq.core.domain.auth.Subject subject, String advisory, String advisoryType, String synopsis)
          Creates a new advisory in the system.
 org.rhq.core.domain.content.AdvisoryCVE createAdvisoryCVE(org.rhq.core.domain.auth.Subject subject, 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 subject, org.rhq.core.domain.content.Advisory advisory, org.rhq.core.domain.content.PackageVersion packageVersion)
          creates a AdvisoryPackage mapping object
 org.rhq.core.domain.content.CVE createCVE(org.rhq.core.domain.auth.Subject subject, String cvename)
          creates a cve instance for a given cve name
 void deleteAdvisoryBugList(org.rhq.core.domain.auth.Subject overlord, int id)
          Deletes a given instance of advisoryBuglist object.
 void deleteAdvisoryByAdvId(org.rhq.core.domain.auth.Subject subject, int advId)
          Deletes a given instance of advisory object.
 void deleteAdvisoryCVE(org.rhq.core.domain.auth.Subject subject, int advId)
          removes the AdvisoryCVE mapping
 void deleteAdvisoryPackage(org.rhq.core.domain.auth.Subject subject, int advId)
          Deletes a given instance of advisoryPackage object.
 void deleteCVE(org.rhq.core.domain.auth.Subject subject, int cveId)
          deletes specified cve object
 org.rhq.core.domain.content.AdvisoryPackage findAdvisoryPackage(org.rhq.core.domain.auth.Subject overlord, 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 packages associated for a given 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 packages associated for a given package
 org.rhq.core.domain.content.AdvisoryBuglist getAdvisoryBuglist(org.rhq.core.domain.auth.Subject subject, int advId, String buginfo)
          find AdvisoryBuglist object for given advId and buginfo
 List<org.rhq.core.domain.content.AdvisoryBuglist> getAdvisoryBuglistByAdvId(org.rhq.core.domain.auth.Subject subject, int advId)
          find bugs associated to a given 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)
          find CVEs associated to a given advisory
 

Method Detail

createAdvisory

org.rhq.core.domain.content.Advisory createAdvisory(org.rhq.core.domain.auth.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

org.rhq.core.domain.content.CVE createCVE(org.rhq.core.domain.auth.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

org.rhq.core.domain.content.AdvisoryCVE createAdvisoryCVE(org.rhq.core.domain.auth.Subject subject,
                                                          org.rhq.core.domain.content.Advisory advisory,
                                                          org.rhq.core.domain.content.CVE cve)
                                                          throws AdvisoryException
creates a AdvisoryCVE relationship object

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

createAdvisoryPackage

org.rhq.core.domain.content.AdvisoryPackage createAdvisoryPackage(org.rhq.core.domain.auth.Subject subject,
                                                                  org.rhq.core.domain.content.Advisory advisory,
                                                                  org.rhq.core.domain.content.PackageVersion packageVersion)
                                                                  throws AdvisoryException
creates a AdvisoryPackage mapping object

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

deleteCVE

void deleteCVE(org.rhq.core.domain.auth.Subject subject,
               int cveId)
deletes specified cve object

Parameters:
user -
cveId -

deleteAdvisoryCVE

void deleteAdvisoryCVE(org.rhq.core.domain.auth.Subject subject,
                       int advId)
removes the AdvisoryCVE mapping

Parameters:
user -
advId -

deleteAdvisoryByAdvId

void deleteAdvisoryByAdvId(org.rhq.core.domain.auth.Subject subject,
                           int advId)
Deletes a given instance of advisory object.

Parameters:
user -
advId -

getAdvisoryByName

org.rhq.core.domain.content.Advisory getAdvisoryByName(String advlabel)
find advisory by advisory name

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

findPackageByAdvisory

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 packages associated for a given advisory

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

findPackageVersionByPkgId

org.rhq.core.domain.content.PackageVersion findPackageVersionByPkgId(org.rhq.core.domain.auth.Subject subject,
                                                                     String rpmName,
                                                                     org.rhq.core.domain.util.PageControl pc)
find packages associated for a given package

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

getAdvisoryCVEByAdvId

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)
find CVEs associated to a given advisory

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

getAdvisoryBuglistByAdvId

List<org.rhq.core.domain.content.AdvisoryBuglist> getAdvisoryBuglistByAdvId(org.rhq.core.domain.auth.Subject subject,
                                                                            int advId)
find bugs associated to a given advisory

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

deleteAdvisoryBugList

void deleteAdvisoryBugList(org.rhq.core.domain.auth.Subject overlord,
                           int id)
Deletes a given instance of advisoryBuglist object.

Parameters:
user -
advId -

deleteAdvisoryPackage

void deleteAdvisoryPackage(org.rhq.core.domain.auth.Subject subject,
                           int advId)
Deletes a given instance of advisoryPackage object.

Parameters:
user -
advId -

findAdvisoryPackage

org.rhq.core.domain.content.AdvisoryPackage findAdvisoryPackage(org.rhq.core.domain.auth.Subject overlord,
                                                                int advId,
                                                                int pkgVerId)
find AdvisoryPackage object for given advId and packageVersion id

Parameters:
overlord -
advId -
pkgVerId -

getAdvisoryBuglist

org.rhq.core.domain.content.AdvisoryBuglist getAdvisoryBuglist(org.rhq.core.domain.auth.Subject subject,
                                                               int advId,
                                                               String buginfo)
find AdvisoryBuglist object for given advId and buginfo

Parameters:
subject -
advId -
buginfo -
Returns:


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