org.sonar.plugins.mantis
Class MantisSensor

java.lang.Object
  extended by org.sonar.plugins.mantis.MantisSensor
All Implemented Interfaces:
org.sonar.api.batch.CheckProject, org.sonar.api.batch.Sensor, org.sonar.api.BatchComponent, org.sonar.api.BatchExtension, org.sonar.api.Extension

public class MantisSensor
extends Object
implements org.sonar.api.batch.Sensor

Since:
0.1
Author:
Jeremie Lagarde

Field Summary
 
Fields inherited from interface org.sonar.api.batch.Sensor
FLAG_SQUID_ANALYSIS
 
Constructor Summary
MantisSensor()
           
 
Method Summary
 void analyse(org.sonar.api.resources.Project project, org.sonar.api.batch.SensorContext context)
           
protected  MantisSoapService createMantisSoapService()
           
 String getFilterName()
           
 String getPassword()
           
 String getProjectName()
           
 String getServerUrl()
           
 String getUsername()
           
protected  void initParams(org.sonar.api.resources.Project project)
           
protected  boolean isMandatoryParametersNotEmpty()
           
protected  void saveMeasures(org.sonar.api.batch.SensorContext context, BigInteger projectId, org.sonar.api.measures.Measure issuesMeasure)
           
 boolean shouldExecuteOnProject(org.sonar.api.resources.Project project)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MantisSensor

public MantisSensor()
Method Detail

getServerUrl

public String getServerUrl()

getUsername

public String getUsername()

getPassword

public String getPassword()

getFilterName

public String getFilterName()

getProjectName

public String getProjectName()

analyse

public void analyse(org.sonar.api.resources.Project project,
                    org.sonar.api.batch.SensorContext context)
Specified by:
analyse in interface org.sonar.api.batch.Sensor

createMantisSoapService

protected MantisSoapService createMantisSoapService()
                                             throws RemoteException
Throws:
RemoteException

initParams

protected void initParams(org.sonar.api.resources.Project project)

isMandatoryParametersNotEmpty

protected boolean isMandatoryParametersNotEmpty()

saveMeasures

protected void saveMeasures(org.sonar.api.batch.SensorContext context,
                            BigInteger projectId,
                            org.sonar.api.measures.Measure issuesMeasure)

shouldExecuteOnProject

public boolean shouldExecuteOnProject(org.sonar.api.resources.Project project)
Specified by:
shouldExecuteOnProject in interface org.sonar.api.batch.CheckProject

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.