Class ManagedFile.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<ManagedFile>
-
- org.jenkinsci.plugins.configfiles.buildwrapper.ManagedFile.DescriptorImpl
-
- Enclosing class:
- ManagedFile
@Symbol("configFile") @Extension public static class ManagedFile.DescriptorImpl extends Descriptor<ManagedFile>
-
-
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 org.kohsuke.stapler.HttpResponse
doCheckFileId(org.kohsuke.stapler.StaplerRequest req, Item context, AccessControlled ac, String fileId)
validate that an existing config was chosenListBoxModel
doFillFileIdItems(ItemGroup context, Item project, AccessControlled ac)
String
getDisplayName()
-
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, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<ManagedFile>
-
doFillFileIdItems
public ListBoxModel doFillFileIdItems(@AncestorInPath ItemGroup context, @AncestorInPath Item project, @AncestorInPath AccessControlled ac)
-
doCheckFileId
public org.kohsuke.stapler.HttpResponse doCheckFileId(org.kohsuke.stapler.StaplerRequest req, @AncestorInPath Item context, @AncestorInPath AccessControlled ac, @QueryParameter String fileId)
validate that an existing config was chosen- Parameters:
req
- the requestcontext
- the context this file is configured infileId
- the id of the config file- Returns:
- a validation result / description
-
-