Class FilenameChoiceListProvider.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<ChoiceListProvider>
jp.ikedam.jenkins.plugins.extensible_choice_parameter.FilenameChoiceListProvider.DescriptorImpl
- Enclosing class:
- FilenameChoiceListProvider
@Extension
public static class FilenameChoiceListProvider.DescriptorImpl
extends Descriptor<ChoiceListProvider>
Class for view.
-
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 TypeMethodDescriptiondoCheckBaseDirPath
(String baseDirPath) Validate a value inputed for baseDirPath Checks followings: * not blank * specified path exists * specified path is a directory.doCheckExcludePattern
(String excludePattern) Validate a value inputed for excludePattern always ok.doCheckIncludePattern
(String includePattern) Validate a value inputed for includePattern Checks followings: * not blankdoTest
(String baseDirPath, String includePattern, String excludePattern, FilenameChoiceListProvider.ScanType scanType, boolean reverseOrder, FilenameChoiceListProvider.EmptyChoiceType emptyChoiceType) Test what files will be listed.Returns the name for displaying.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
Returns the name for displaying.- Overrides:
getDisplayName
in classDescriptor<ChoiceListProvider>
- Returns:
- the name for displaying
-
doCheckBaseDirPath
Validate a value inputed for baseDirPath Checks followings: * not blank * specified path exists * specified path is a directory.- Parameters:
baseDirPath
-- Returns:
- FormValidation object
-
doCheckIncludePattern
Validate a value inputed for includePattern Checks followings: * not blank- Parameters:
includePattern
-- Returns:
- FormValidation object
-
doCheckExcludePattern
Validate a value inputed for excludePattern always ok.- Parameters:
excludePattern
-- Returns:
- FormValidation object
-
doTest
public FormValidation doTest(@QueryParameter String baseDirPath, @QueryParameter String includePattern, @QueryParameter String excludePattern, @QueryParameter FilenameChoiceListProvider.ScanType scanType, @QueryParameter boolean reverseOrder, @QueryParameter FilenameChoiceListProvider.EmptyChoiceType emptyChoiceType) Test what files will be listed.- Parameters:
baseDirPath
-includePattern
-excludePattern
-scanType
-- Returns:
-