Class ClaimConfig

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension public final class ClaimConfig extends GlobalConfiguration
  • Constructor Details

    • ClaimConfig

      public ClaimConfig()
  • Method Details

    • getDisplayName

      @NonNull public String getDisplayName()
      This human readable name is used in the configuration screen.
      Overrides:
      getDisplayName in class Descriptor<GlobalConfiguration>
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException
      Overrides:
      configure in class GlobalConfiguration
      Throws:
      Descriptor.FormException
    • getSendEmails

      public boolean getSendEmails()
      This method returns true if the global configuration says we should send mails on initial claims.
      Returns:
      true if configuration is that we send emails for initial claims, false otherwise
    • setSendEmails

      public void setSendEmails(boolean val)
      Set whether we should send emails for initial claims.
      Parameters:
      val - the setting to use
    • getSendEmailsForStickyFailures

      public boolean getSendEmailsForStickyFailures()
      This method returns true if the global configuration says we should send mails on build sticky failures.
      Returns:
      true if configuration is that we send emails for sticky failures, false otherwise
    • setSendEmailsForStickyFailures

      public void setSendEmailsForStickyFailures(boolean val)
      Set whether we should send emails for sticky failures.
      Parameters:
      val - the setting to use
    • isStickyByDefault

      public boolean isStickyByDefault()
      Returns true if the claims should be sticky by default, false otherwise.
      Returns:
      true to make claims sticky by default, else false.
    • setStickyByDefault

      public void setStickyByDefault(boolean stickyByDefault)
      Sets the default stickiness behaviour for build claims.
      Parameters:
      stickyByDefault - the default stickiness value.
    • isPropagateToFollowingBuildsByDefault

      public boolean isPropagateToFollowingBuildsByDefault()
      Returns true if the claims should be propagated to following builds by default, false otherwise.
      Returns:
      true to make claims propagated to following builds by default, else false.
    • setPropagateToFollowingBuildsByDefault

      public void setPropagateToFollowingBuildsByDefault(boolean propagateToFollowingBuildsByDefault)
      Sets the default following builds propagation behaviour for claims.
      Parameters:
      propagateToFollowingBuildsByDefault - the default following build propagation value.
    • isSortUsersByFullName

      public boolean isSortUsersByFullName()
      Returns true if the users should be sorted by full name instead of ids.
      Returns:
      true to make users sorted by full name, else false.
    • setSortUsersByFullName

      public void setSortUsersByFullName(boolean sortUsersByFullName)
      Sets the user sort method.
      Parameters:
      sortUsersByFullName - true to make users sorted by full name, else false.
    • isEmailDisplayedForAssigneesList

      public boolean isEmailDisplayedForAssigneesList()
      Returns true if the email should be displayed in the assignee list when claiming.
      Returns:
      true to display email address, else false.
    • setEmailDisplayedForAssigneesList

      public void setEmailDisplayedForAssigneesList(boolean emailDisplayedForAssigneesList)
      Sets the email display option for assignees list when claiming.
      Parameters:
      emailDisplayedForAssigneesList - true to display email address, else false.
    • isAllowUsersToConfigureEmailPreferences

      public boolean isAllowUsersToConfigureEmailPreferences()
    • setAllowUsersToConfigureEmailPreferences

      public void setAllowUsersToConfigureEmailPreferences(boolean allowUsersToConfigureEmailPreferences)
    • getGroovyTrigger

      @NonNull public org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript getGroovyTrigger()
    • hasGroovyTrigger

      public boolean hasGroovyTrigger()
    • get

      public static ClaimConfig get()
      Gets the current claim configuration.
      Returns:
      the global claim configuration