Class AbstractUploadDescriptor

    • Constructor Detail

      • AbstractUploadDescriptor

        protected AbstractUploadDescriptor​(Class<? extends AbstractUpload> clazz,
                                           UploadModule module)
        Create the descriptor of the Upload from it's type on associated module for instantiating dependencies.
        Parameters:
        clazz - Class that extends AbstractUpload.
        module - Helper class methods to use for execution.
    • Method Detail

      • getModule

        public UploadModule getModule()
        Returns:
        Retrieve the module to use for instantiating dependencies for instances described by this descriptor.
      • staticDoCheckBucket

        public static FormValidation staticDoCheckBucket​(String bucketNameWithVars)
        This callback validates the bucketNameWithVars 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 the bucketNameWithVars 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

        public FormValidation doCheckBucket​(@QueryParameter
                                            String bucket)
                                     throws IOException
        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.