|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.plugins.core.sensors.CloseReviewsDecorator
public class CloseReviewsDecorator
Decorator that currently only closes a review when its corresponding violation has been fixed.
Constructor Summary | |
---|---|
CloseReviewsDecorator(Project project,
ResourcePersister resourcePersister,
DatabaseSession databaseSession,
NotificationManager notificationManager,
UserFinder userFinder)
|
Method Summary | |
---|---|
protected int |
closeReviews(Resource resource,
int resourceId,
int snapshotId)
Close reviews for which violations have been fixed. |
protected int |
closeReviewsForDeletedResources(int projectId,
int projectSnapshotId)
Close reviews that relate to resources that have been deleted or renamed. |
void |
decorate(Resource resource,
DecoratorContext context)
|
protected int |
reopenReviews(Resource resource,
int resourceId)
Reopen reviews that had been set to resolved but for which the violation is still here. |
boolean |
shouldExecuteOnProject(Project project)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseReviewsDecorator(Project project, ResourcePersister resourcePersister, DatabaseSession databaseSession, NotificationManager notificationManager, UserFinder userFinder)
Method Detail |
---|
public boolean shouldExecuteOnProject(Project project)
shouldExecuteOnProject
in interface CheckProject
public void decorate(Resource resource, DecoratorContext context)
decorate
in interface Decorator
protected int closeReviews(Resource resource, int resourceId, int snapshotId)
protected int reopenReviews(Resource resource, int resourceId)
protected int closeReviewsForDeletedResources(int projectId, int projectSnapshotId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |