aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-05-06 09:32:05 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-05-06 09:32:05 +0200
commit8a35689e3cf1d84d3b321be33bc12607711d1ee6 (patch)
tree5869d32072f9e67c647789344fdfef87a4930b8b
parente6de0291526bcffff77a1ed43274907c392a33f3 (diff)
downloadsonarqube-8a35689e3cf1d84d3b321be33bc12607711d1ee6.tar.gz
sonarqube-8a35689e3cf1d84d3b321be33bc12607711d1ee6.zip
Add some javadocs on ProfilesWS
-rw-r--r--sonar-server/src/main/java/org/sonar/server/platform/ServerComponents.java5
-rw-r--r--sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/ProfilesWs.java6
2 files changed, 8 insertions, 3 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/platform/ServerComponents.java b/sonar-server/src/main/java/org/sonar/server/platform/ServerComponents.java
index 3044dec4d45..d0d64be9d18 100644
--- a/sonar-server/src/main/java/org/sonar/server/platform/ServerComponents.java
+++ b/sonar-server/src/main/java/org/sonar/server/platform/ServerComponents.java
@@ -113,9 +113,10 @@ import org.sonar.server.qualitygate.QualityGates;
import org.sonar.server.qualitygate.RegisterQualityGates;
import org.sonar.server.qualitygate.ws.*;
import org.sonar.server.qualityprofile.*;
+import org.sonar.server.qualityprofile.ws.ActivateRuleAction;
import org.sonar.server.qualityprofile.ws.ProfilesWs;
import org.sonar.server.qualityprofile.ws.QProfileRestoreDefaultAction;
-import org.sonar.server.qualityprofile.ws.QualityProfilesWs;
+import org.sonar.server.qualityprofile.ws.QProfilesWs;
import org.sonar.server.rule.*;
import org.sonar.server.rule.ws.*;
import org.sonar.server.rule2.RuleService;
@@ -284,10 +285,10 @@ class ServerComponents {
pico.addSingleton(DefaultProfilesCache.class);
pico.addSingleton(ESActiveRule.class);
pico.addSingleton(QProfileRestoreDefaultAction.class);
+ pico.addSingleton(QProfilesWs.class);
pico.addSingleton(ProfilesWs.class);
pico.addSingleton(ActivateRuleAction.class);
pico.addSingleton(RuleActivationService.class);
- pico.addSingleton(QualityProfilesWs.class);
// rule
pico.addSingleton(AnnotationRuleParser.class);
diff --git a/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/ProfilesWs.java b/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/ProfilesWs.java
index da57c84cd3b..2446cc7203a 100644
--- a/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/ProfilesWs.java
+++ b/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/ProfilesWs.java
@@ -23,12 +23,16 @@ import com.google.common.io.Resources;
import org.sonar.api.server.ws.RailsHandler;
import org.sonar.api.server.ws.WebService;
+/**
+ * List of quality profiles WS implemented in Rails.
+ * New WS on quality profiles MUST be declared in {@link org.sonar.server.qualityprofile.ws.QProfilesWs}
+ */
public class ProfilesWs implements WebService {
@Override
public void define(Context context) {
NewController controller = context.createController("api/profiles")
- .setDescription("Quality profiles management");
+ .setDescription("Quality profiles management (implemented in Rails)");
defineListAction(controller);
defineBackupAction(controller);