Class BuildStepOperation.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<BuildTimeOutOperation>
hudson.plugins.build_timeout.BuildTimeOutOperationDescriptor
hudson.plugins.build_timeout.operations.BuildStepOperation.DescriptorImpl
- Enclosing class:
BuildStepOperation
@Extension
public static class BuildStepOperation.DescriptorImpl
extends BuildTimeOutOperationDescriptor
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
configure
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) List
<Descriptor<?>> getBuildStepDescriptors
(AbstractProject<?, ?> project) boolean
isApplicable
(Class<? extends AbstractProject<?, ?>> jobType) Returns true if this task is applicable to the given project.boolean
Returns whetherBuildStepOperation
is enabled.newInstance
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) Create a new instance from user input.void
setEnabled
(boolean enabled) Methods inherited from class hudson.plugins.build_timeout.BuildTimeOutOperationDescriptor
all, all
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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whetherBuildStepOperation
is enabled. AsBuildStepOperation
does not ensure to work with allBuildStep
, it is provided as an "advanced" feature, and disabled by default.- Returns:
- whether
BuildStepOperation
is enabled
-
setEnabled
public void setEnabled(boolean enabled) -
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configure
in classDescriptor<BuildTimeOutOperation>
- Throws:
Descriptor.FormException
-
newInstance
public BuildStepOperation newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException Create a new instance from user input. As there are builders or publishers who does not useDataBoundConstructor
, it is required to handle to callDescriptor.newInstance(StaplerRequest, JSONObject)
manually.- Overrides:
newInstance
in classDescriptor<BuildTimeOutOperation>
- Throws:
Descriptor.FormException
-
isApplicable
Description copied from class:BuildTimeOutOperationDescriptor
Returns true if this task is applicable to the given project. Override this to restrict project types this action can be applied.- Overrides:
isApplicable
in classBuildTimeOutOperationDescriptor
- Returns:
- true when
BuildStepOperation
is enabled in system configuration. - See Also:
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<BuildTimeOutOperation>
-
getBuildStepDescriptors
-
getRequiredGlobalConfigPagePermission
- Overrides:
getRequiredGlobalConfigPagePermission
in classDescriptor<BuildTimeOutOperation>
-