Class Cpd.Descriptor

    • Constructor Detail

      • Descriptor

        public Descriptor()
        Creates the descriptor instance.
    • Method Detail

      • doCheckHighThreshold

        @POST
        public FormValidation doCheckHighThreshold​(@AncestorInPath
                                                   AbstractProject<?,​?> project,
                                                   @QueryParameter("highThreshold")
                                                   int highThreshold,
                                                   @QueryParameter("normalThreshold")
                                                   int normalThreshold)
        Performs on-the-fly validation on threshold for high warnings.
        Parameters:
        project - the project that is configured
        highThreshold - the threshold for high warnings
        normalThreshold - the threshold for normal warnings
        Returns:
        the validation result
      • doCheckNormalThreshold

        @POST
        public FormValidation doCheckNormalThreshold​(@AncestorInPath
                                                     AbstractProject<?,​?> project,
                                                     @QueryParameter("highThreshold")
                                                     int highThreshold,
                                                     @QueryParameter("normalThreshold")
                                                     int normalThreshold)
        Performs on-the-fly validation on threshold for normal warnings.
        Parameters:
        project - the project that is configured
        highThreshold - the threshold for high warnings
        normalThreshold - the threshold for normal warnings
        Returns:
        the validation result