@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final class UpdateSite.Warning extends Object
UpdateSiteWarningsConfiguration
,
UpdateSiteWarningsMonitor
Modifier and Type | Class and Description |
---|---|
static class |
UpdateSite.Warning.Type |
Modifier and Type | Field and Description |
---|---|
String |
component
The name of the affected component.
|
String |
id
The globally unique ID of this warning.
|
String |
message
A short, English language explanation for this warning.
|
UpdateSite.Warning.Type |
type
The type classifier for this warning.
|
String |
url
A URL with more information about this, typically a security advisory.
|
List<UpdateSite.WarningVersionRange> |
versionRanges
A list of named version ranges specifying which versions of the named component this warning applies to.
|
Constructor and Description |
---|
Warning(net.sf.json.JSONObject o) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Two objects are considered equal if they are the same type and have the same ID.
|
int |
hashCode() |
boolean |
isPluginWarning(String pluginName) |
boolean |
isRelevant()
Returns true if this warning is relevant to the current configuration
|
boolean |
isRelevantToVersion(VersionNumber version) |
@NonNull public UpdateSite.Warning.Type type
@Exported @NonNull public final String id
This is typically the CVE identifier or SECURITY issue (Jenkins project); possibly with a unique suffix (e.g. artifactId) if either applies to multiple components.
@Exported @NonNull public final String component
@Exported @NonNull public final String message
@Exported @NonNull public final String url
@Exported @NonNull public final List<UpdateSite.WarningVersionRange> versionRanges
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public Warning(net.sf.json.JSONObject o)
o
- the JSONObject
representing the warningnet.sf.json.JSONException
- if the argument does not match the expected formatpublic boolean equals(Object o)
public boolean isPluginWarning(@NonNull String pluginName)
public boolean isRelevant()
public boolean isRelevantToVersion(@NonNull VersionNumber version)
Copyright © 2004–2021. All rights reserved.