Class FailureCause.FailureCauseDescriptor

java.lang.Object
hudson.model.Descriptor<FailureCause>
com.sonyericsson.jenkins.plugins.bfa.model.FailureCause.FailureCauseDescriptor
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
FailureCause

@Extension public static final class FailureCause.FailureCauseDescriptor extends Descriptor<FailureCause>
Descriptor is only used for auto completion of categories.
  • Constructor Details

    • FailureCauseDescriptor

      public FailureCauseDescriptor()
  • Method Details

    • getLastFailedBuildUrl

      public String getLastFailedBuildUrl()
      Returns:
      the URL to the last failed build of the project from whose page the Failure Cause Management page was entered.
    • setLastFailedBuildUrl

      public void setLastFailedBuildUrl()
      Set the URL of the last failed build of the project from whose page the Failure Cause Management page was entered.
    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<FailureCause>
    • doCheckDescription

      public FormValidation doCheckDescription(@QueryParameter String value)
      Form validation for FailureCause.description. Checks for not empty and not "Description..."
      Parameters:
      value - the form value.
      Returns:
      FormValidation.ok() if everything is well.
    • doCheckName

      public FormValidation doCheckName(@QueryParameter String value, @QueryParameter String id)
      Form validation for FailureCause.name. Checks for not empty, not "New...", Jenkins.checkGoodName(String) and that it is unique based on the cache of existing causes.
      Parameters:
      value - the form value.
      id - The id (if changing an existing cause).
      Returns:
      FormValidation.ok() if everything is well.
    • doAutoCompleteCategories

      public AutoCompletionCandidates doAutoCompleteCategories(@QueryParameter String value)
      Does the auto completion for categories, matching with any category already present in the knowledge base.
      Parameters:
      value - the input value.
      Returns:
      the AutoCompletionCandidates.