Package hudson.plugins.copyartifact
Class CopyArtifactPermissionProperty.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<JobProperty<?>>
hudson.model.JobPropertyDescriptor
hudson.plugins.copyartifact.CopyArtifactPermissionProperty.DescriptorImpl
- Enclosing class:
- CopyArtifactPermissionProperty
@Extension
@Symbol("copyArtifactPermission")
public static class CopyArtifactPermissionProperty.DescriptorImpl
extends JobPropertyDescriptor
Descriptor for
CopyArtifactPermissionProperty
.-
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 TypeMethodDescriptiondoAutoCompleteProjectNames
(String value, Job<?, ?> currentJob) Provides candidates for project name autocompletion.doCheckProjectNames
(String projectNames, Job<?, ?> job) Checks the provided projects exist in the provided context.newInstance
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) Creates a new property.Methods inherited from class hudson.model.JobPropertyDescriptor
all, getPropertyDescriptors, isApplicable
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, 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, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<JobProperty<?>>
- Returns:
- name displayed in the project configuration page.
- See Also:
-
getPropertyName
- Returns:
- key name used in the configuration form.
-
newInstance
public CopyArtifactPermissionProperty newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException Creates a new property.- Overrides:
newInstance
in classJobPropertyDescriptor
- Parameters:
req
- Request.formData
- Form data.- Returns:
- The created property.
- Throws:
Descriptor.FormException
- If an error occurs parsing the form data.- See Also:
-
doCheckProjectNames
public FormValidation doCheckProjectNames(@QueryParameter String projectNames, @CheckForNull @AncestorInPath Job<?, ?> job) Checks the provided projects exist in the provided context.- Parameters:
projectNames
- Projects to check.job
- the configuring job.- Returns:
- ok if all projects are found and a warning otherwise.
-
doAutoCompleteProjectNames
public AutoCompletionCandidates doAutoCompleteProjectNames(@QueryParameter String value, @CheckForNull @AncestorInPath Job<?, ?> currentJob) Provides candidates for project name autocompletion.- Parameters:
value
- Seed value.currentJob
- job the configuring job.- Returns:
- The proposed project candidates.
-