org.sonar.batch.qualitygate
Class GenerateQualityGateEvents

java.lang.Object
  extended by org.sonar.batch.qualitygate.GenerateQualityGateEvents
All Implemented Interfaces:
CheckProject, Decorator, BatchComponent, BatchExtension, Extension

public class GenerateQualityGateEvents
extends Object
implements Decorator


Constructor Summary
GenerateQualityGateEvents(QualityGate qualityGate, TimeMachine timeMachine, NotificationManager notificationManager)
           
 
Method Summary
 void decorate(Resource resource, DecoratorContext context)
           
 Metric dependsUponAlertStatus()
           
protected  void notifyUsers(Resource resource, String alertName, String alertText, Metric.Level alertLevel, boolean isNewAlert)
           
 boolean shouldExecuteOnProject(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateQualityGateEvents

public GenerateQualityGateEvents(QualityGate qualityGate,
                                 TimeMachine timeMachine,
                                 NotificationManager notificationManager)
Method Detail

shouldExecuteOnProject

public boolean shouldExecuteOnProject(Project project)
Specified by:
shouldExecuteOnProject in interface CheckProject

dependsUponAlertStatus

public Metric dependsUponAlertStatus()

decorate

public void decorate(Resource resource,
                     DecoratorContext context)
Specified by:
decorate in interface Decorator

notifyUsers

protected void notifyUsers(Resource resource,
                           String alertName,
                           String alertText,
                           Metric.Level alertLevel,
                           boolean isNewAlert)


Copyright © 2009–2015 SonarSource. All rights reserved.