Class CodeDxProjectAction

  • All Implemented Interfaces:
    Action, ModelObject

    public class CodeDxProjectAction
    extends Object
    implements Action
    Author:
    ademartini This file is heavily derived from the sloccount-plugin (author: lordofthepigs)
    • Method Detail

      • getLatestAnalysisUrl

        public String getLatestAnalysisUrl()
      • showTablesAndCharts

        public boolean showTablesAndCharts()
      • doIndex

        public void doIndex​(org.kohsuke.stapler.StaplerRequest request,
                            org.kohsuke.stapler.StaplerResponse response)
                     throws IOException
        Redirects the index page to the last result.
        Parameters:
        request - Stapler request
        response - Stapler response
        Throws:
        IOException - in case of an error
      • getLastFinishedBuild

        public Run<?,​?> getLastFinishedBuild()
        Returns the last finished build.
        Returns:
        the last finished build or null if there is no such build
      • getLastFinishedBuildAction

        public CodeDxBuildAction getLastFinishedBuildAction()
        Get build action of the last finished build.
        Returns:
        the build action or null
      • hasValidResults

        public final boolean hasValidResults()
      • doSeverityTrend

        public void doSeverityTrend​(org.kohsuke.stapler.StaplerRequest request,
                                    org.kohsuke.stapler.StaplerResponse response)
                             throws IOException
        Display the severity trend graph.
        Parameters:
        request - Stapler request
        response - Stapler response
        Throws:
        IOException - in case of an error
      • doStatusTrend

        public void doStatusTrend​(org.kohsuke.stapler.StaplerRequest request,
                                  org.kohsuke.stapler.StaplerResponse response)
                           throws IOException
        Display the status trend graph.
        Parameters:
        request - Stapler request
        response - Stapler response
        Throws:
        IOException - in case of an error