Class AstreeBuilder.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<Builder>
com.absint.astree.AstreeBuilder.DescriptorImpl
All Implemented Interfaces:
Saveable, OnMaster
Enclosing class:
AstreeBuilder

@Extension public static final class AstreeBuilder.DescriptorImpl extends BuildStepDescriptor<Builder>
Descriptor for AstreeBuilder. Used as a singleton. The class is marked as public so that it can be accessed from views.
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
      Constructor.
      Constructs a new object of this class and loads the persisted global configuration.
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Return the human readable name used in the configuration screen.
      Overrides:
      getDisplayName in class Descriptor<Builder>
      Returns:
      java.lang.String
    • doCheckAstree_server

      public FormValidation doCheckAstree_server(@QueryParameter String value) throws IOException, javax.servlet.ServletException
      Performs on-the-fly validation of the form field 'astree_server'.
      Parameters:
      value - The value that the user has typed.
      Returns:
      Indicates the outcome of the validation. This is sent to the browser.
      Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.
      Throws:
      IOException - as super class
      javax.servlet.ServletException - as super class
    • doCheckAlauncher

      public FormValidation doCheckAlauncher(@QueryParameter String value, AbstractProject project) throws IOException, javax.servlet.ServletException
      Performs on-the-fly validation of the form field 'alauncher'.
      Parameters:
      value - The value that the user has typed.
      project - unused
      Returns:
      Indicates the outcome of the validation. This is sent to the browser.
      Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.
      Throws:
      IOException - as super class
      javax.servlet.ServletException - as super class
    • containsEnvVars

      public static final boolean containsEnvVars(String s)
      Helper method to check whether a string contains an environment variable of form
      ${IDENTIFIER}
      Parameters:
      s - String to scan for environment variable expressions
      Returns:
      Outcome of the check as a boolean (true if such an expression was found, otherwise false).
    • doCheckDax_file

      public FormValidation doCheckDax_file(@QueryParameter String value) throws IOException, javax.servlet.ServletException
      Performs on-the-fly validation of the form field 'dax_file'.
      Parameters:
      value - This parameter receives the value that the user has typed.
      Returns:
      Indicates the outcome of the validation. This is sent to the browser.
      Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.
      Throws:
      IOException - as super class
      javax.servlet.ServletException - as super class
    • doCheckAnalysis_id

      public FormValidation doCheckAnalysis_id(@QueryParameter String value) throws IOException, javax.servlet.ServletException
      Performs on-the-fly validation of the form field 'analysis_id'.
      Parameters:
      value - This parameter receives the value that the user has typed.
      Returns:
      Indicates the outcome of the validation. This is sent to the browser.
      Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.
      Throws:
      IOException - as super class
      javax.servlet.ServletException - as super class
    • doCheckOutput_dir

      public FormValidation doCheckOutput_dir(@QueryParameter String value) throws IOException, javax.servlet.ServletException
      Performs on-the-fly validation of the form field 'output_dir'.
      Parameters:
      value - This parameter receives the value that the user has typed.
      Returns:
      Indicates the outcome of the validation. This is sent to the browser.
      Note that returning FormValidation.error(String) does not prevent the form from being saved. It just means that a message will be displayed to the user.
      Throws:
      IOException - as super class
      javax.servlet.ServletException - as super class
    • isApplicable

      public boolean isApplicable(Class<? extends AbstractProject> aClass)
      Indicates that this builder can be used with all kinds of project types.
      Specified by:
      isApplicable in class BuildStepDescriptor<Builder>
      Returns:
      boolean
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
      Sets a new configuration.
      Overrides:
      configure in class Descriptor<Builder>
      Throws:
      Descriptor.FormException - as super class
    • getAstree_server

      public String getAstree_server()
      Returns the currently configured Astrée server (as host:port).
      Returns:
      java.lang.String
    • getAlauncher

      public String getAlauncher()
      Returns the currently configured alauncher.
      Returns:
      java.lang.String
    • getUser

      public String getUser()
      Returns the currently configured Astrée user.
      Returns:
      java.lang.String
    • getPassword

      public String getPassword()
      Returns the currently configured Astrée (user) password.
      Returns:
      java.lang.String