Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

MeasuresWsParameters.java 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2018 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonar.server.component.ws;
  21. import com.google.common.collect.ImmutableSortedSet;
  22. import java.util.Set;
  23. public class MeasuresWsParameters {
  24. public static final String CONTROLLER_MEASURES = "api/measures";
  25. // actions
  26. public static final String ACTION_COMPONENT_TREE = "component_tree";
  27. public static final String ACTION_COMPONENT = "component";
  28. public static final String ACTION_SEARCH_HISTORY = "search_history";
  29. // parameters
  30. public static final String DEPRECATED_PARAM_BASE_COMPONENT_ID = "baseComponentId";
  31. public static final String DEPRECATED_PARAM_BASE_COMPONENT_KEY = "baseComponentKey";
  32. public static final String PARAM_COMPONENT = "component";
  33. public static final String PARAM_BRANCH = "branch";
  34. public static final String PARAM_PULL_REQUEST = "pullRequest";
  35. public static final String PARAM_STRATEGY = "strategy";
  36. public static final String PARAM_QUALIFIERS = "qualifiers";
  37. public static final String PARAM_METRICS = "metrics";
  38. public static final String PARAM_METRIC_KEYS = "metricKeys";
  39. public static final String PARAM_METRIC_SORT = "metricSort";
  40. public static final String PARAM_METRIC_PERIOD_SORT = "metricPeriodSort";
  41. public static final String PARAM_METRIC_SORT_FILTER = "metricSortFilter";
  42. public static final String PARAM_ADDITIONAL_FIELDS = "additionalFields";
  43. public static final String DEPRECATED_PARAM_COMPONENT_ID = "componentId";
  44. public static final String DEPRECATED_PARAM_COMPONENT_KEY = "componentKey";
  45. public static final String PARAM_PROJECT_KEYS = "projectKeys";
  46. public static final String PARAM_DEVELOPER_ID = "developerId";
  47. public static final String PARAM_DEVELOPER_KEY = "developerKey";
  48. public static final String PARAM_FROM = "from";
  49. public static final String PARAM_TO = "to";
  50. public static final String ADDITIONAL_METRICS = "metrics";
  51. public static final String ADDITIONAL_PERIODS = "periods";
  52. public static final Set<String> ADDITIONAL_FIELDS = ImmutableSortedSet.of(ADDITIONAL_METRICS, ADDITIONAL_PERIODS);
  53. private MeasuresWsParameters() {
  54. // static constants only
  55. }
  56. }