Class AbstractBucketLifecycleManagerDescriptor
java.lang.Object
hudson.model.Descriptor<AbstractUpload>
com.google.jenkins.plugins.storage.AbstractUploadDescriptor
com.google.jenkins.plugins.storage.AbstractBucketLifecycleManagerDescriptor
- Direct Known Subclasses:
ExpiringBucketLifecycleManager.DescriptorImpl
The descriptor for our new
AbstractBucketLifecycleManager
extension point.-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Field Summary
Fields inherited from class com.google.jenkins.plugins.storage.AbstractUploadDescriptor
GCS_SCHEME
Fields inherited from class hudson.model.Descriptor
clazz
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractBucketLifecycleManagerDescriptor
(Class<? extends AbstractBucketLifecycleManager> clazz) -
Method Summary
Modifier and TypeMethodDescriptiondoCheckBucketNameWithVars
(String bucketNameWithVars) This specialized override of the bucket name form validation disallows multi-part storage prefixes (just the bucket name).Methods inherited from class com.google.jenkins.plugins.storage.AbstractUploadDescriptor
doCheckBucket, getModule, newInstance, staticDoCheckBucket
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
-
Constructor Details
-
AbstractBucketLifecycleManagerDescriptor
public AbstractBucketLifecycleManagerDescriptor(Class<? extends AbstractBucketLifecycleManager> clazz)
-
-
Method Details
-
doCheckBucketNameWithVars
public FormValidation doCheckBucketNameWithVars(@QueryParameter String bucketNameWithVars) throws IOException This specialized override of the bucket name form validation disallows multi-part storage prefixes (just the bucket name).- Overrides:
doCheckBucketNameWithVars
in classAbstractUploadDescriptor
- Parameters:
bucketNameWithVars
- GCS bucket.- Returns:
- Valid form validation result or error message if invalid.
- Throws:
IOException
- If there was an issue validating the bucket.
-