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
  • Field Details

  • Constructor Details

    • AdvisorGlobalConfiguration

      public AdvisorGlobalConfiguration()
    • AdvisorGlobalConfiguration

      public AdvisorGlobalConfiguration(String email, List<Recipient> ccs, Set<String> excludedComponents)
  • Method Details

    • getInstance

      public static AdvisorGlobalConfiguration getInstance()
    • getIconFileName

      @CheckForNull public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
      Specified by:
      getIconFileName in class ManagementLink
    • getUrlName

      @CheckForNull public String getUrlName()
      Specified by:
      getUrlName in interface Action
      Specified by:
      getUrlName in class ManagementLink
    • getDisplayName

      @CheckForNull public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • 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 class ManagementLink
    • getDescription

      @CheckForNull public String getDescription()
      Overrides:
      getDescription in class ManagementLink
    • 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.StaplerRequest2 req)
      Handles the form submission
      Parameters:
      req - the request.
      Returns:
      the response.
    • getDescriptor

      public Descriptor<AdvisorGlobalConfiguration> getDescriptor()
      Specified by:
      getDescriptor in interface Describable<AdvisorGlobalConfiguration>
    • getEmail

      public String getEmail()
    • setEmail

      @DataBoundSetter public void setEmail(@CheckForNull String email)
    • getCcs

      @Nonnull public List<Recipient> getCcs()
    • setCcs

      @DataBoundSetter public void setCcs(List<Recipient> ccs)
    • getExcludedComponents

      @Nonnull public Set<String> getExcludedComponents()
    • 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)
    • save

      public void save()
      Specified by:
      save in interface Saveable
    • load

      public void load()