Class AdvisorGlobalConfiguration
- java.lang.Object
-
- hudson.model.ManagementLink
-
- com.cloudbees.jenkins.plugins.advisor.AdvisorGlobalConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Action
,Describable<AdvisorGlobalConfiguration>
,ModelObject
,Saveable
,OnMaster
@Extension public class AdvisorGlobalConfiguration extends ManagementLink implements Describable<AdvisorGlobalConfiguration>, ExtensionPoint, Saveable, OnMaster
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdvisorGlobalConfiguration.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.model.ManagementLink
ManagementLink.Category
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
INVALID_CONFIGURATION
static String
PLUGIN_NAME
static String
SEND_ALL_COMPONENTS
static String
SERVICE_OPERATIONAL
-
Fields inherited from class hudson.model.ManagementLink
LIST
-
-
Constructor Summary
Constructors Constructor Description AdvisorGlobalConfiguration()
AdvisorGlobalConfiguration(String email, List<Recipient> ccs, Set<String> excludedComponents)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.kohsuke.stapler.HttpResponse
doConfigure(org.kohsuke.stapler.StaplerRequest req)
Handles the form submissionString
getActionDisclaimer()
String
getActionTitle()
String
getCategoryName()
Name of the category for this management link.List<Recipient>
getCcs()
List<com.cloudbees.jenkins.support.api.Component>
getComponents()
String
getDescription()
Descriptor<AdvisorGlobalConfiguration>
getDescriptor()
String
getDisclaimer()
String
getDisplayName()
String
getEmail()
Set<String>
getExcludedComponents()
String
getIconFileName()
List<com.cloudbees.jenkins.support.api.Component>
getIncludedComponents()
static AdvisorGlobalConfiguration
getInstance()
String
getLastBundleResult()
String
getUrlName()
boolean
isAcceptToS()
boolean
isNagDisabled()
boolean
isValid()
static boolean
isValid(boolean logErrors, boolean acceptToS, String email, List<Recipient> ccs)
void
load()
protected Object
readResolve()
void
save()
boolean
selectedByDefault(com.cloudbees.jenkins.support.api.Component c)
void
setAcceptToS(boolean acceptToS)
void
setCcs(List<Recipient> ccs)
void
setEmail(String email)
void
setExcludedComponents(Set<String> excludedComponents)
void
setLastBundleResult(String lastBundleResult)
void
setNagDisabled(boolean nagDisabled)
-
Methods inherited from class hudson.model.ManagementLink
all, getBadge, getCategory, getRequiredPermission, getRequiresConfirmation, getRequiresPOST
-
-
-
-
Field Detail
-
PLUGIN_NAME
public static final String PLUGIN_NAME
- See Also:
- Constant Field Values
-
SEND_ALL_COMPONENTS
public static final String SEND_ALL_COMPONENTS
- See Also:
- Constant Field Values
-
INVALID_CONFIGURATION
public static final String INVALID_CONFIGURATION
- See Also:
- Constant Field Values
-
SERVICE_OPERATIONAL
public static final String SERVICE_OPERATIONAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static AdvisorGlobalConfiguration getInstance()
-
getIconFileName
@CheckForNull public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classManagementLink
-
getUrlName
@CheckForNull public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Specified by:
getUrlName
in classManagementLink
-
getDisplayName
@CheckForNull public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getCategoryName
@Nonnull public String getCategoryName()
Name of the category for this management link. TBD: Use getCategory when core requirement is greater or equal to 2.226- Overrides:
getCategoryName
in classManagementLink
-
getDescription
@CheckForNull public String getDescription()
- Overrides:
getDescription
in classManagementLink
-
getActionTitle
public String getActionTitle()
-
getActionDisclaimer
public String getActionDisclaimer()
-
getDisclaimer
public String getDisclaimer()
-
isNagDisabled
public boolean isNagDisabled()
-
setNagDisabled
@DataBoundSetter public void setNagDisabled(boolean nagDisabled)
-
isAcceptToS
public boolean isAcceptToS()
-
setAcceptToS
@DataBoundSetter public void setAcceptToS(boolean acceptToS)
-
getLastBundleResult
public String getLastBundleResult()
-
setLastBundleResult
@DataBoundSetter public void setLastBundleResult(String lastBundleResult)
-
readResolve
protected Object readResolve()
-
doConfigure
@Nonnull @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.kohsuke.stapler.HttpResponse doConfigure(@Nonnull org.kohsuke.stapler.StaplerRequest req)
Handles the form submission- Parameters:
req
- the request.- Returns:
- the response.
-
getDescriptor
public Descriptor<AdvisorGlobalConfiguration> getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<AdvisorGlobalConfiguration>
-
getEmail
public String getEmail()
-
setEmail
@DataBoundSetter public void setEmail(@CheckForNull String email)
-
setExcludedComponents
@DataBoundSetter public void setExcludedComponents(Set<String> excludedComponents)
-
getIncludedComponents
public List<com.cloudbees.jenkins.support.api.Component> getIncludedComponents()
-
selectedByDefault
public boolean selectedByDefault(com.cloudbees.jenkins.support.api.Component c)
-
getComponents
public List<com.cloudbees.jenkins.support.api.Component> getComponents()
-
isValid
public boolean isValid()
-
isValid
public static boolean isValid(boolean logErrors, boolean acceptToS, String email, List<Recipient> ccs)
-
load
public void load()
-
-