public abstract class AbstractUploadDescriptor extends Descriptor<AbstractUpload>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
Modifier and Type | Field and Description |
---|---|
static String |
GCS_SCHEME |
clazz
Modifier | Constructor and Description |
---|---|
protected |
AbstractUploadDescriptor(Class<? extends AbstractUpload> clazz)
Create the descriptor of the Upload from it's type of
AbstractUpload . |
protected |
AbstractUploadDescriptor(Class<? extends AbstractUpload> clazz,
UploadModule module)
Create the descriptor of the Upload from it's type on associated module for instantiating
dependencies.
|
Modifier and Type | Method and Description |
---|---|
FormValidation |
doCheckBucket(String bucket)
Form validation for bucket parameter.
|
FormValidation |
doCheckBucketNameWithVars(String bucketNameWithVars)
This callback validates the
bucketNameWithVars input field's values. |
UploadModule |
getModule() |
AbstractUpload |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
static FormValidation |
staticDoCheckBucket(String bucketNameWithVars)
This callback validates the
bucketNameWithVars input field's values. |
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, 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, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public static final String GCS_SCHEME
protected AbstractUploadDescriptor(Class<? extends AbstractUpload> clazz, UploadModule module)
clazz
- Class that extends AbstractUpload
.module
- Helper class methods to use for execution.protected AbstractUploadDescriptor(Class<? extends AbstractUpload> clazz)
AbstractUpload
.clazz
- Class that extends AbstractUpload
.public UploadModule getModule()
public static FormValidation staticDoCheckBucket(String bucketNameWithVars)
bucketNameWithVars
input field's values.bucketNameWithVars
- GCS bucket.public FormValidation doCheckBucketNameWithVars(@QueryParameter String bucketNameWithVars) throws IOException
bucketNameWithVars
input field's values.bucketNameWithVars
- GCS bucket.IOException
- If there was an issue validating the bucket.public FormValidation doCheckBucket(@QueryParameter String bucket) throws IOException
bucket
- GCS bucket.IOException
- If there was an issue validating the bucket.public AbstractUpload newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws Descriptor.FormException
newInstance
in class Descriptor<AbstractUpload>
Descriptor.FormException
Copyright © 2016–2019. All rights reserved.