diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-11-26 10:32:46 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-11-26 10:32:46 +0100 |
commit | a17af69ca315f1df6d8c3f475e3ce53268564192 (patch) | |
tree | bc28c3b99672de9757a5d2d4d246686b762aa419 /server/sonar-server | |
parent | 67aaca94068b68c0015e10cfe32d4680bafba7c6 (diff) | |
download | sonarqube-a17af69ca315f1df6d8c3f475e3ce53268564192.tar.gz sonarqube-a17af69ca315f1df6d8c3f475e3ce53268564192.zip |
SONAR-7027 Readd indexResource in JRubyFace
This method is required for the Developer Cockpit plugin
Diffstat (limited to 'server/sonar-server')
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java b/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java index 8724c4d7f89..d3c78fd2727 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java +++ b/server/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java @@ -45,6 +45,7 @@ import org.sonar.core.platform.PluginInfo; import org.sonar.core.platform.PluginRepository; import org.sonar.core.timemachine.Periods; import org.sonar.db.Database; +import org.sonar.db.component.ResourceIndexDao; import org.sonar.db.version.DatabaseMigration; import org.sonar.db.version.DatabaseVersion; import org.sonar.process.ProcessProperties; @@ -402,4 +403,12 @@ public final class JRubyFacade { Database database = container.getComponentByType(Database.class); return !database.getDialect().supportsMigration(); } + + /** + * Used by Developer Cockpit + */ + public void indexResource(long resourceId) { + get(ResourceIndexDao.class).indexResource(resourceId); + } + } |