public class ErrataHandler extends BaseHandler
VALID
Constructor and Description |
---|
ErrataHandler() |
Modifier and Type | Method and Description |
---|---|
int |
addPackages(User loggedInUser,
java.lang.String advisoryName,
java.util.List<java.lang.Integer> packageIds)
Add a set of packages to an erratum
|
java.lang.Object[] |
applicableToChannels(User loggedInUser,
java.lang.String advisoryName)
Returns a list of channels (represented by a map) that the given erratum is
applicable to.
|
java.util.Map<java.lang.Long,java.lang.String> |
bugzillaFixes(User loggedInUser,
java.lang.String advisoryName)
Get the Bugzilla fixes for a given errata
|
java.lang.Object[] |
clone(User loggedInUser,
java.lang.String channelLabel,
java.util.List advisoryNames)
Clones a list of errata into a specified channel
|
java.lang.Object[] |
cloneAsOriginal(User loggedInUser,
java.lang.String channelLabel,
java.util.List<java.lang.String> advisoryNames)
Clones a list of errata into a specified cloned channel
according the original erratas
|
int |
cloneAsOriginalAsync(User loggedInUser,
java.lang.String channelLabel,
java.util.List<java.lang.String> advisoryNames)
Asynchronously clones a list of errata into a specified cloned channel
according the original erratas
|
int |
cloneAsync(User loggedInUser,
java.lang.String channelLabel,
java.util.List advisoryNames)
Asynchronously clones a list of errata into a specified channel
|
Errata |
create(User loggedInUser,
java.util.Map<java.lang.String,java.lang.Object> errataInfo,
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> bugs,
java.util.List<java.lang.String> keywords,
java.util.List<java.lang.Integer> packageIds,
boolean publish,
java.util.List<java.lang.String> channelLabels)
creates an errata
|
java.lang.Integer |
delete(User loggedInUser,
java.lang.String advisoryName)
Delete an erratum.
|
java.util.List<Errata> |
findByCve(User loggedInUser,
java.lang.String cveName)
Lookup the details for errata associated with the given CVE.
|
java.util.Map<java.lang.String,java.lang.Object> |
getDetails(User loggedInUser,
java.lang.String advisoryName)
GetDetails - Retrieves the details for a given errata.
|
java.lang.Object[] |
listAffectedSystems(User loggedInUser,
java.lang.String advisoryName)
ListAffectedSystems
|
java.util.List |
listByDate(User loggedInUser,
java.lang.String channelLabel)
Deprecated.
being replaced by channel.software.listErrata(User LoggedInUser,
string channelLabel)
|
java.util.List |
listCves(User loggedInUser,
java.lang.String advisoryName)
Returns a list of CVEs for a given erratum
|
java.lang.Object[] |
listKeywords(User loggedInUser,
java.lang.String advisoryName)
Get the keywords for a given erratum
|
java.util.List<java.util.Map> |
listPackages(User loggedInUser,
java.lang.String advisoryName)
List the packages for a given erratum
|
java.lang.Object[] |
listUnpublishedErrata(User loggedInUser)
Returns a list of unpublished errata for the logged-in user's Org.
|
Errata |
publish(User loggedInUser,
java.lang.String advisory,
java.util.List<java.lang.String> channelLabels)
Publishes an existing (unpublished) errata to a set of channels
|
Errata |
publishAsOriginal(User loggedInUser,
java.lang.String advisory,
java.util.List<java.lang.String> channelLabels)
Publishes an existing (unpublished) cloned errata to a set of cloned channels
according to its original erratum
|
int |
removePackages(User loggedInUser,
java.lang.String advisoryName,
java.util.List<java.lang.Integer> packageIds)
Remove a set of packages from an erratum
|
java.lang.Integer |
setDetails(User loggedInUser,
java.lang.String advisoryName,
java.util.Map<java.lang.String,java.lang.Object> details)
Set erratum details.
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists
public java.util.Map<java.lang.String,java.lang.Object> getDetails(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the errataFaultException
- A FaultException is thrown if the errata
corresponding to advisoryName cannot be found.public java.lang.Integer setDetails(User loggedInUser, java.lang.String advisoryName, java.util.Map<java.lang.String,java.lang.Object> details)
loggedInUser
- The current useradvisoryName
- The advisory name of the erratadetails
- Map of (optional) erratum details to be set.public java.lang.Object[] listAffectedSystems(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the errataFaultException
- A FaultException is thrown if the errata corresponding to
advisoryName cannot be found.public java.util.Map<java.lang.Long,java.lang.String> bugzillaFixes(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the errataFaultException
- A FaultException is thrown if the errata
corresponding to the given advisoryName cannot be found.public java.lang.Object[] listKeywords(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the erratumFaultException
- A FaultException is thrown if the errata corresponding to the
given advisoryName cannot be fopublic java.lang.Object[] applicableToChannels(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the erratumFaultException
- A FaultException is thrown if the errata corresponding to the
given advisoryName cannot be foundpublic java.lang.Object[] listUnpublishedErrata(User loggedInUser)
loggedInUser
- The current userpublic java.util.List listCves(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the erratumFaultException
- A FaultException is thrown if the errata corresponding to the
given advisoryName cannot be found
throws FaultException {public java.util.List<java.util.Map> listPackages(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the erratumFaultException
- A FaultException is thrown if the errata corresponding to the
given advisoryName cannot be foundpublic int addPackages(User loggedInUser, java.lang.String advisoryName, java.util.List<java.lang.Integer> packageIds) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the erratumpackageIds
- The ids for packages to removeFaultException
- A FaultException is thrown if the errata corresponding to the
given advisoryName cannot be foundpublic int removePackages(User loggedInUser, java.lang.String advisoryName, java.util.List<java.lang.Integer> packageIds) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory name of the erratumpackageIds
- The ids for packages to removeFaultException
- A FaultException is thrown if the errata corresponding to the
given advisoryName cannot be foundpublic java.lang.Object[] clone(User loggedInUser, java.lang.String channelLabel, java.util.List advisoryNames) throws InvalidChannelRoleException
loggedInUser
- The current userchannelLabel
- the channel's label that we are cloning intoadvisoryNames
- an array of String objects containing the advisory name
of every errata you want to cloneInvalidChannelRoleException
- if the user perms are incorrectpublic int cloneAsync(User loggedInUser, java.lang.String channelLabel, java.util.List advisoryNames) throws InvalidChannelRoleException
loggedInUser
- The current userchannelLabel
- the channel's label that we are cloning intoadvisoryNames
- an array of String objects containing the advisory name
of every errata you want to cloneInvalidChannelRoleException
- if the user perms are incorrectpublic java.lang.Object[] cloneAsOriginal(User loggedInUser, java.lang.String channelLabel, java.util.List<java.lang.String> advisoryNames) throws InvalidChannelRoleException
loggedInUser
- The current userchannelLabel
- the cloned channel's label that we are cloning intoadvisoryNames
- an array of String objects containing the advisory name
of every errata you want to cloneInvalidChannelRoleException
- if the user perms are incorrectpublic int cloneAsOriginalAsync(User loggedInUser, java.lang.String channelLabel, java.util.List<java.lang.String> advisoryNames) throws InvalidChannelRoleException
loggedInUser
- The current userchannelLabel
- the cloned channel's label that we are cloning intoadvisoryNames
- an array of String objects containing the advisory name
of every errata you want to cloneInvalidChannelRoleException
- if the user perms are incorrectpublic Errata create(User loggedInUser, java.util.Map<java.lang.String,java.lang.Object> errataInfo, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> bugs, java.util.List<java.lang.String> keywords, java.util.List<java.lang.Integer> packageIds, boolean publish, java.util.List<java.lang.String> channelLabels) throws InvalidChannelRoleException
loggedInUser
- The current usererrataInfo
- map containing the following values:
String "synopsis" short synopsis of the errata
String "advisory_name" advisory name of the errata
Integer "advisory_release" release number of the errata
String "advisory_type" the type of advisory for the errata (Must be one of the
following: "Security Advisory", "Product Enhancement Advisory", or
"Bug Fix Advisory"
String "product" the product the errata affects
String "errataFrom" the author of the errata
String "topic" the topic of the errata
String "description" the description of the errata
String "solution" the solution of the errata
String "references" references of the errata to be created
String "notes" notes on the errata
String "severity" is name of given security advisory severity (Must be one of the
following: 'Low', 'Moderate', 'Important', 'Critical' or 'Unspecified')bugs
- a List of maps consisting of 'id' Integers and 'summary' stringskeywords
- a List of keywords for the erratapackageIds
- a List of package Id packageId Integerspublish
- should the errata be publishedchannelLabels
- an array of channel labels to publish to if the errata is to
be publishedInvalidChannelRoleException
- if the user perms are incorrectpublic java.lang.Integer delete(User loggedInUser, java.lang.String advisoryName) throws FaultException
loggedInUser
- The current useradvisoryName
- The advisory Name of the erratum to deleteFaultException
- if unknown or invalid erratum is provided.public Errata publish(User loggedInUser, java.lang.String advisory, java.util.List<java.lang.String> channelLabels) throws InvalidChannelRoleException
loggedInUser
- The current useradvisory
- The advisory Name of the errata to publishchannelLabels
- List of channels to publish the errata toInvalidChannelRoleException
- if the user perms are incorrectpublic Errata publishAsOriginal(User loggedInUser, java.lang.String advisory, java.util.List<java.lang.String> channelLabels) throws InvalidChannelRoleException
loggedInUser
- The current useradvisory
- The advisory Name of the errata to publishchannelLabels
- List of channels to publish the errata toInvalidChannelRoleException
- if the user perms are incorrect@Deprecated public java.util.List listByDate(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- channel associated with the errata you are interested in.