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 forCopyArtifactPermissionProperty
.
-
-
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 Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoCompletionCandidates
doAutoCompleteProjectNames(String value, Job<?,?> currentJob)
Provides candidates for project name autocompletion.FormValidation
doCheckProjectNames(String projectNames, Job<?,?> job)
Checks the provided projects exist in the provided context.String
getDisplayName()
String
getPropertyName()
CopyArtifactPermissionProperty
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
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<JobProperty<?>>
- Returns:
- name displayed in the project configuration page.
- See Also:
Descriptor.getDisplayName()
-
getPropertyName
public String 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:
JobPropertyDescriptor.newInstance(org.kohsuke.stapler.StaplerRequest, net.sf.json.JSONObject)
-
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.
-
-