net.praqma.jenkins.plugin.prqa.notifier
Class PRQANotifier

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by net.praqma.jenkins.plugin.prqa.notifier.PRQANotifier
All Implemented Interfaces:
hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class PRQANotifier
extends hudson.tasks.Publisher


Nested Class Summary
static class PRQANotifier.DescriptorImpl
          This class is used by Jenkins to define the plugin.
 
Nested classes/interfaces inherited from class hudson.tasks.Publisher
hudson.tasks.Publisher.DescriptorExtensionListImpl
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
hudson.tasks.BuildStep.PublisherList
 
Field Summary
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
PRQANotifier(String reportType, String product, boolean totalBetter, String totalMax, String fileComplianceIndex, String projectComplianceIndex, String settingMaxMessages, String settingFileCompliance, String settingProjectCompliance, String projectFile)
           
 
Method Summary
 Double getFileComplianceIndex()
           
 PRQAGraph getGraph(Class clazz, List<PRQAGraph> graphs)
           
 PRQAGraph getGraph(String simpleClassName)
           
 List<PRQAGraph> getGraphTypes()
           
 String getProduct()
           
 hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
           
 Double getProjectComplianceIndex()
           
 String getProjectFile()
           
 net.praqma.prqa.PRQAContext.QARReportType getReportType()
           
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 String getSettingFileCompliance()
           
 String getSettingMaxMessages()
           
 String getSettingProjectCompliance()
           
 List<PRQAGraph> getSupportedGraphs(net.praqma.prqa.PRQAContext.QARReportType type)
           
 Number getThreshold(net.praqma.prqa.status.StatusCategory cat)
           
 HashMap<net.praqma.prqa.status.StatusCategory,Number> getThresholds()
           
 Boolean getTotalBetter()
           
 Integer getTotalMax()
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
           
 void setFileComplianceIndex(Double fileCompliance)
           
 void setGraphTypes(List<PRQAGraph> graphTypes)
           
 void setProduct(String product)
           
 void setProjectComplianceIndex(Double index)
           
 void setProjectFile(String projectFile)
           
 void setReportType(net.praqma.prqa.PRQAContext.QARReportType reportType)
           
 void setSettingFileCompliance(String settingFileCompliance)
           
 void setSettingMaxMessages(String settingMaxMessages)
           
 void setSettingProjectCompliance(String settingProjectCompliance)
           
 void setTotalBetter(Boolean totalBetter)
           
 void setTotalMax(Integer totalMax)
           
 
Methods inherited from class hudson.tasks.Publisher
all, getDescriptor, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectActions, prebuild
 

Constructor Detail

PRQANotifier

@DataBoundConstructor
public PRQANotifier(String reportType,
                                         String product,
                                         boolean totalBetter,
                                         String totalMax,
                                         String fileComplianceIndex,
                                         String projectComplianceIndex,
                                         String settingMaxMessages,
                                         String settingFileCompliance,
                                         String settingProjectCompliance,
                                         String projectFile)
Method Detail

getProjectAction

public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
Specified by:
getProjectAction in interface hudson.tasks.BuildStep
Overrides:
getProjectAction in class hudson.tasks.BuildStepCompatibilityLayer

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

getSupportedGraphs

public List<PRQAGraph> getSupportedGraphs(net.praqma.prqa.PRQAContext.QARReportType type)

getGraph

public PRQAGraph getGraph(String simpleClassName)

getThreshold

public Number getThreshold(net.praqma.prqa.status.StatusCategory cat)

getThresholds

public HashMap<net.praqma.prqa.status.StatusCategory,Number> getThresholds()

getGraph

public PRQAGraph getGraph(Class clazz,
                          List<PRQAGraph> graphs)

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException
Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Throws:
InterruptedException
IOException

getTotalMax

@Exported
public Integer getTotalMax()

setTotalMax

@Exported
public void setTotalMax(Integer totalMax)

setGraphTypes

@Exported
public void setGraphTypes(List<PRQAGraph> graphTypes)

getGraphTypes

@Exported
public List<PRQAGraph> getGraphTypes()

getProduct

@Exported
public String getProduct()

setProduct

@Exported
public void setProduct(String product)

getReportType

@Exported
public net.praqma.prqa.PRQAContext.QARReportType getReportType()

setReportType

@Exported
public void setReportType(net.praqma.prqa.PRQAContext.QARReportType reportType)

getTotalBetter

@Exported
public Boolean getTotalBetter()

setTotalBetter

@Exported
public void setTotalBetter(Boolean totalBetter)

setFileComplianceIndex

@Exported
public void setFileComplianceIndex(Double fileCompliance)

getFileComplianceIndex

@Exported
public Double getFileComplianceIndex()

getProjectComplianceIndex

@Exported
public Double getProjectComplianceIndex()

setProjectComplianceIndex

@Exported
public void setProjectComplianceIndex(Double index)

setSettingFileCompliance

@Exported
public void setSettingFileCompliance(String settingFileCompliance)

getSettingFileCompliance

@Exported
public String getSettingFileCompliance()

setSettingProjectCompliance

@Exported
public void setSettingProjectCompliance(String settingProjectCompliance)

getSettingProjectCompliance

@Exported
public String getSettingProjectCompliance()

getSettingMaxMessages

@Exported
public String getSettingMaxMessages()

setSettingMaxMessages

@Exported
public void setSettingMaxMessages(String settingMaxMessages)

setProjectFile

@Exported
public void setProjectFile(String projectFile)

getProjectFile

@Exported
public String getProjectFile()


Copyright © 2004-2012. All Rights Reserved.