Class AbstractUploadDescriptor
- Direct Known Subclasses:
AbstractBucketLifecycleManagerDescriptor
,ClassicUpload.DescriptorImpl
,StdoutUpload.DescriptorImpl
Descriptor from which Upload extensions must derive their descriptor.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
FieldsFields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractUploadDescriptor
(Class<? extends AbstractUpload> clazz) Create the descriptor of the Upload from it's type ofAbstractUpload
.protected
AbstractUploadDescriptor
(Class<? extends AbstractUpload> clazz, UploadModule module) Create the descriptor of the Upload from it's type on associated module for instantiating dependencies. -
Method Summary
Modifier and TypeMethodDescriptiondoCheckBucket
(String bucket) Form validation for bucket parameter.doCheckBucketNameWithVars
(String bucketNameWithVars) This callback validates thebucketNameWithVars
input field's values.newInstance
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) static FormValidation
staticDoCheckBucket
(String bucketNameWithVars) This callback validates thebucketNameWithVars
input field's values.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, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Field Details
-
GCS_SCHEME
- See Also:
-
-
Constructor Details
-
AbstractUploadDescriptor
Create the descriptor of the Upload from it's type on associated module for instantiating dependencies.- Parameters:
clazz
- Class that extendsAbstractUpload
.module
- Helper class methods to use for execution.
-
AbstractUploadDescriptor
Create the descriptor of the Upload from it's type ofAbstractUpload
.- Parameters:
clazz
- Class that extendsAbstractUpload
.
-
-
Method Details
-
getModule
- Returns:
- Retrieve the module to use for instantiating dependencies for instances described by this descriptor.
-
staticDoCheckBucket
This callback validates thebucketNameWithVars
input field's values.- Parameters:
bucketNameWithVars
- GCS bucket.- Returns:
- Valid form validation result or error message if invalid.
-
doCheckBucketNameWithVars
public FormValidation doCheckBucketNameWithVars(@QueryParameter String bucketNameWithVars) throws IOException This callback validates thebucketNameWithVars
input field's values.- Parameters:
bucketNameWithVars
- GCS bucket.- Returns:
- Valid form validation result or error message if invalid.
- Throws:
IOException
- If there was an issue validating the bucket.
-
doCheckBucket
Form validation for bucket parameter.- Parameters:
bucket
- GCS bucket.- Returns:
- Valid form validation result or error message if invalid.
- Throws:
IOException
- If there was an issue validating the bucket.
-
newInstance
public AbstractUpload newInstance(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject formData) throws Descriptor.FormException - Overrides:
newInstance
in classDescriptor<AbstractUpload>
- Throws:
Descriptor.FormException
-