You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DefaultWsClient.java 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2017 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.sonarqube.ws.client;
  21. import javax.annotation.Generated;
  22. import org.sonarqube.ws.client.analysisreports.AnalysisReportsService;
  23. import org.sonarqube.ws.client.authentication.AuthenticationService;
  24. import org.sonarqube.ws.client.batch.BatchService;
  25. import org.sonarqube.ws.client.ce.CeService;
  26. import org.sonarqube.ws.client.components.ComponentsService;
  27. import org.sonarqube.ws.client.custommeasures.CustomMeasuresService;
  28. import org.sonarqube.ws.client.duplications.DuplicationsService;
  29. import org.sonarqube.ws.client.editions.EditionsService;
  30. import org.sonarqube.ws.client.emails.EmailsService;
  31. import org.sonarqube.ws.client.favorites.FavoritesService;
  32. import org.sonarqube.ws.client.favourites.FavouritesService;
  33. import org.sonarqube.ws.client.issues.IssuesService;
  34. import org.sonarqube.ws.client.l10n.L10nService;
  35. import org.sonarqube.ws.client.languages.LanguagesService;
  36. import org.sonarqube.ws.client.measures.MeasuresService;
  37. import org.sonarqube.ws.client.metrics.MetricsService;
  38. import org.sonarqube.ws.client.navigation.NavigationService;
  39. import org.sonarqube.ws.client.notifications.NotificationsService;
  40. import org.sonarqube.ws.client.organizations.OrganizationsService;
  41. import org.sonarqube.ws.client.permissions.PermissionsService;
  42. import org.sonarqube.ws.client.plugins.PluginsService;
  43. import org.sonarqube.ws.client.profiles.ProfilesService;
  44. import org.sonarqube.ws.client.projectanalyses.ProjectAnalysesService;
  45. import org.sonarqube.ws.client.projectbranches.ProjectBranchesService;
  46. import org.sonarqube.ws.client.projectlinks.ProjectLinksService;
  47. import org.sonarqube.ws.client.projects.ProjectsService;
  48. import org.sonarqube.ws.client.projecttags.ProjectTagsService;
  49. import org.sonarqube.ws.client.properties.PropertiesService;
  50. import org.sonarqube.ws.client.qualitygates.QualitygatesService;
  51. import org.sonarqube.ws.client.qualityprofiles.QualityprofilesService;
  52. import org.sonarqube.ws.client.resources.ResourcesService;
  53. import org.sonarqube.ws.client.roots.RootsService;
  54. import org.sonarqube.ws.client.rules.RulesService;
  55. import org.sonarqube.ws.client.server.ServerService;
  56. import org.sonarqube.ws.client.settings.SettingsService;
  57. import org.sonarqube.ws.client.sources.SourcesService;
  58. import org.sonarqube.ws.client.system.SystemService;
  59. import org.sonarqube.ws.client.tests.TestsService;
  60. import org.sonarqube.ws.client.timemachine.TimemachineService;
  61. import org.sonarqube.ws.client.updatecenter.UpdatecenterService;
  62. import org.sonarqube.ws.client.usergroups.UserGroupsService;
  63. import org.sonarqube.ws.client.userproperties.UserPropertiesService;
  64. import org.sonarqube.ws.client.users.UsersService;
  65. import org.sonarqube.ws.client.usertokens.UserTokensService;
  66. import org.sonarqube.ws.client.webhooks.WebhooksService;
  67. import org.sonarqube.ws.client.webservices.WebservicesService;
  68. /**
  69. * This class is not public anymore since version 5.5. It is
  70. * created by {@link WsClientFactory}
  71. *
  72. * @since 5.3
  73. */
  74. @Generated("sonar-ws-generator")
  75. class DefaultWsClient implements WsClient {
  76. private final WsConnector wsConnector;
  77. private final AnalysisReportsService analysisReportsService;
  78. private final AuthenticationService authenticationService;
  79. private final CeService ceService;
  80. private final ComponentsService componentsService;
  81. private final CustomMeasuresService customMeasuresService;
  82. private final DuplicationsService duplicationsService;
  83. private final EditionsService editionsService;
  84. private final EmailsService emailsService;
  85. private final FavoritesService favoritesService;
  86. private final FavouritesService favouritesService;
  87. private final IssuesService issuesService;
  88. private final L10nService l10nService;
  89. private final LanguagesService languagesService;
  90. private final MeasuresService measuresService;
  91. private final MetricsService metricsService;
  92. private final NavigationService navigationService;
  93. private final NotificationsService notificationsService;
  94. private final OrganizationsService organizationsService;
  95. private final PermissionsService permissionsService;
  96. private final PluginsService pluginsService;
  97. private final ProfilesService profilesService;
  98. private final ProjectAnalysesService projectAnalysesService;
  99. private final ProjectBranchesService projectBranchesService;
  100. private final ProjectLinksService projectLinksService;
  101. private final ProjectTagsService projectTagsService;
  102. private final ProjectsService projectsService;
  103. private final PropertiesService propertiesService;
  104. private final QualitygatesService qualitygatesService;
  105. private final QualityprofilesService qualityprofilesService;
  106. private final ResourcesService resourcesService;
  107. private final RootsService rootsService;
  108. private final RulesService rulesService;
  109. private final ServerService serverService;
  110. private final SettingsService settingsService;
  111. private final SourcesService sourcesService;
  112. private final SystemService systemService;
  113. private final TestsService testsService;
  114. private final TimemachineService timemachineService;
  115. private final UpdatecenterService updatecenterService;
  116. private final UserGroupsService userGroupsService;
  117. private final UserPropertiesService userPropertiesService;
  118. private final UserTokensService userTokensService;
  119. private final UsersService usersService;
  120. private final WebhooksService webhooksService;
  121. private final WebservicesService webservicesService;
  122. private final BatchService batchService;
  123. DefaultWsClient(WsConnector wsConnector) {
  124. this.wsConnector = wsConnector;
  125. this.analysisReportsService = new AnalysisReportsService(wsConnector);
  126. this.authenticationService = new AuthenticationService(wsConnector);
  127. this.ceService = new CeService(wsConnector);
  128. this.componentsService = new ComponentsService(wsConnector);
  129. this.customMeasuresService = new CustomMeasuresService(wsConnector);
  130. this.duplicationsService = new DuplicationsService(wsConnector);
  131. this.editionsService = new EditionsService(wsConnector);
  132. this.emailsService = new EmailsService(wsConnector);
  133. this.favoritesService = new FavoritesService(wsConnector);
  134. this.favouritesService = new FavouritesService(wsConnector);
  135. this.issuesService = new IssuesService(wsConnector);
  136. this.l10nService = new L10nService(wsConnector);
  137. this.languagesService = new LanguagesService(wsConnector);
  138. this.measuresService = new MeasuresService(wsConnector);
  139. this.metricsService = new MetricsService(wsConnector);
  140. this.navigationService = new NavigationService(wsConnector);
  141. this.notificationsService = new NotificationsService(wsConnector);
  142. this.organizationsService = new OrganizationsService(wsConnector);
  143. this.permissionsService = new PermissionsService(wsConnector);
  144. this.pluginsService = new PluginsService(wsConnector);
  145. this.profilesService = new ProfilesService(wsConnector);
  146. this.projectAnalysesService = new ProjectAnalysesService(wsConnector);
  147. this.projectBranchesService = new ProjectBranchesService(wsConnector);
  148. this.projectLinksService = new ProjectLinksService(wsConnector);
  149. this.projectTagsService = new ProjectTagsService(wsConnector);
  150. this.projectsService = new ProjectsService(wsConnector);
  151. this.propertiesService = new PropertiesService(wsConnector);
  152. this.qualitygatesService = new QualitygatesService(wsConnector);
  153. this.qualityprofilesService = new QualityprofilesService(wsConnector);
  154. this.resourcesService = new ResourcesService(wsConnector);
  155. this.rootsService = new RootsService(wsConnector);
  156. this.rulesService = new RulesService(wsConnector);
  157. this.serverService = new ServerService(wsConnector);
  158. this.settingsService = new SettingsService(wsConnector);
  159. this.sourcesService = new SourcesService(wsConnector);
  160. this.systemService = new SystemService(wsConnector);
  161. this.testsService = new TestsService(wsConnector);
  162. this.timemachineService = new TimemachineService(wsConnector);
  163. this.updatecenterService = new UpdatecenterService(wsConnector);
  164. this.userGroupsService = new UserGroupsService(wsConnector);
  165. this.userPropertiesService = new UserPropertiesService(wsConnector);
  166. this.userTokensService = new UserTokensService(wsConnector);
  167. this.usersService = new UsersService(wsConnector);
  168. this.webhooksService = new WebhooksService(wsConnector);
  169. this.webservicesService = new WebservicesService(wsConnector);
  170. this.batchService = new BatchService(wsConnector);
  171. }
  172. @Override
  173. @Deprecated
  174. public WsConnector wsConnector() {
  175. return wsConnector;
  176. }
  177. @Override
  178. public AnalysisReportsService analysisReports() {
  179. return analysisReportsService;
  180. }
  181. @Override
  182. public AuthenticationService authentication() {
  183. return authenticationService;
  184. }
  185. @Override
  186. public CeService ce() {
  187. return ceService;
  188. }
  189. @Override
  190. public ComponentsService components() {
  191. return componentsService;
  192. }
  193. @Override
  194. public CustomMeasuresService customMeasures() {
  195. return customMeasuresService;
  196. }
  197. @Override
  198. public DuplicationsService duplications() {
  199. return duplicationsService;
  200. }
  201. @Override
  202. public EditionsService editions() {
  203. return editionsService;
  204. }
  205. @Override
  206. public EmailsService emails() {
  207. return emailsService;
  208. }
  209. @Override
  210. public FavoritesService favorites() {
  211. return favoritesService;
  212. }
  213. @Override
  214. public FavouritesService favourites() {
  215. return favouritesService;
  216. }
  217. @Override
  218. public IssuesService issues() {
  219. return issuesService;
  220. }
  221. @Override
  222. public L10nService l10n() {
  223. return l10nService;
  224. }
  225. @Override
  226. public LanguagesService languages() {
  227. return languagesService;
  228. }
  229. @Override
  230. public MeasuresService measures() {
  231. return measuresService;
  232. }
  233. @Override
  234. public MetricsService metrics() {
  235. return metricsService;
  236. }
  237. @Override
  238. public NavigationService navigation() {
  239. return navigationService;
  240. }
  241. @Override
  242. public NotificationsService notifications() {
  243. return notificationsService;
  244. }
  245. @Override
  246. public OrganizationsService organizations() {
  247. return organizationsService;
  248. }
  249. @Override
  250. public PermissionsService permissions() {
  251. return permissionsService;
  252. }
  253. @Override
  254. public PluginsService plugins() {
  255. return pluginsService;
  256. }
  257. @Override
  258. public ProfilesService profiles() {
  259. return profilesService;
  260. }
  261. @Override
  262. public ProjectAnalysesService projectAnalyses() {
  263. return projectAnalysesService;
  264. }
  265. @Override
  266. public ProjectBranchesService projectBranches() {
  267. return projectBranchesService;
  268. }
  269. @Override
  270. public ProjectLinksService projectLinks() {
  271. return projectLinksService;
  272. }
  273. @Override
  274. public ProjectTagsService projectTags() {
  275. return projectTagsService;
  276. }
  277. @Override
  278. public ProjectsService projects() {
  279. return projectsService;
  280. }
  281. @Override
  282. public PropertiesService properties() {
  283. return propertiesService;
  284. }
  285. @Override
  286. public QualitygatesService qualitygates() {
  287. return qualitygatesService;
  288. }
  289. @Override
  290. public QualityprofilesService qualityprofiles() {
  291. return qualityprofilesService;
  292. }
  293. @Override
  294. public ResourcesService resources() {
  295. return resourcesService;
  296. }
  297. @Override
  298. public RootsService roots() {
  299. return rootsService;
  300. }
  301. @Override
  302. public RulesService rules() {
  303. return rulesService;
  304. }
  305. @Override
  306. public ServerService server() {
  307. return serverService;
  308. }
  309. @Override
  310. public SettingsService settings() {
  311. return settingsService;
  312. }
  313. @Override
  314. public SourcesService sources() {
  315. return sourcesService;
  316. }
  317. @Override
  318. public SystemService system() {
  319. return systemService;
  320. }
  321. @Override
  322. public TestsService tests() {
  323. return testsService;
  324. }
  325. @Override
  326. public TimemachineService timemachine() {
  327. return timemachineService;
  328. }
  329. @Override
  330. public UpdatecenterService updatecenter() {
  331. return updatecenterService;
  332. }
  333. @Override
  334. public UserGroupsService userGroups() {
  335. return userGroupsService;
  336. }
  337. @Override
  338. public UserPropertiesService userProperties() {
  339. return userPropertiesService;
  340. }
  341. @Override
  342. public UserTokensService userTokens() {
  343. return userTokensService;
  344. }
  345. @Override
  346. public UsersService users() {
  347. return usersService;
  348. }
  349. @Override
  350. public WebhooksService webhooks() {
  351. return webhooksService;
  352. }
  353. @Override
  354. public WebservicesService webservices() {
  355. return webservicesService;
  356. }
  357. @Override
  358. public BatchService batch() {
  359. return batchService;
  360. }
  361. }