Package com.absint.astree
Class AstreeBuilder.DescriptorImpl
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) Sets a new configuration.static final boolean
Helper method to check whether a string contains an environment variable of form
${IDENTIFIER}doCheckAlauncher
(String value, AbstractProject project) Performs on-the-fly validation of the form field 'alauncher'.doCheckAnalysis_id
(String value) Performs on-the-fly validation of the form field 'analysis_id'.doCheckAstree_server
(String value) Performs on-the-fly validation of the form field 'astree_server'.doCheckDax_file
(String value) Performs on-the-fly validation of the form field 'dax_file'.doCheckOutput_dir
(String value) Performs on-the-fly validation of the form field 'output_dir'.Returns the currently configured alauncher.Returns the currently configured Astrée server (as host:port).Return the human readable name used in the configuration screen.Returns the currently configured Astrée (user) password.getUser()
Returns the currently configured Astrée user.boolean
isApplicable
(Class<? extends AbstractProject> aClass) Indicates that this builder can be used with all kinds of project types.Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()Constructor.
Constructs a new object of this class and loads the persisted global configuration.
-
-
Method Details
-
getDisplayName
Return the human readable name used in the configuration screen.- Overrides:
getDisplayName
in classDescriptor<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 returningFormValidation.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 classjavax.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 returningFormValidation.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 classjavax.servlet.ServletException
- as super class
-
containsEnvVars
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 returningFormValidation.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 classjavax.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 returningFormValidation.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 classjavax.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 returningFormValidation.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 classjavax.servlet.ServletException
- as super class
-
isApplicable
Indicates that this builder can be used with all kinds of project types.- Specified by:
isApplicable
in classBuildStepDescriptor<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 classDescriptor<Builder>
- Throws:
Descriptor.FormException
- as super class
-
getAstree_server
Returns the currently configured Astrée server (as host:port).- Returns:
- java.lang.String
-
getAlauncher
Returns the currently configured alauncher.- Returns:
- java.lang.String
-
getUser
Returns the currently configured Astrée user.- Returns:
- java.lang.String
-
getPassword
Returns the currently configured Astrée (user) password.- Returns:
- java.lang.String
-