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.

SearchRequest.java 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467
  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.issue;
  21. import java.util.List;
  22. import javax.annotation.CheckForNull;
  23. import javax.annotation.Nullable;
  24. public class SearchRequest {
  25. private List<String> actionPlans;
  26. private List<String> additionalFields;
  27. private Boolean asc;
  28. private Boolean assigned;
  29. private List<String> assignees;
  30. private List<String> authors;
  31. private List<String> componentKeys;
  32. private List<String> componentRootUuids;
  33. private List<String> componentRoots;
  34. private List<String> componentUuids;
  35. private List<String> components;
  36. private String createdAfter;
  37. private String createdAt;
  38. private String createdBefore;
  39. private String createdInLast;
  40. private List<String> directories;
  41. private String facetMode;
  42. private List<String> facets;
  43. private List<String> fileUuids;
  44. private List<String> issues;
  45. private List<String> languages;
  46. private List<String> moduleUuids;
  47. private Boolean onComponentOnly;
  48. private String branch;
  49. private String pullRequest;
  50. private String organization;
  51. private Integer page;
  52. private Integer pageSize;
  53. private List<String> projectKeys;
  54. private List<String> projectUuids;
  55. private List<String> projects;
  56. private List<String> resolutions;
  57. private Boolean resolved;
  58. private List<String> rules;
  59. private Boolean sinceLeakPeriod;
  60. private String sort;
  61. private List<String> severities;
  62. private List<String> statuses;
  63. private List<String> tags;
  64. private List<String> types;
  65. @CheckForNull
  66. public List<String> getActionPlans() {
  67. return actionPlans;
  68. }
  69. public SearchRequest setActionPlans(@Nullable List<String> actionPlans) {
  70. this.actionPlans = actionPlans;
  71. return this;
  72. }
  73. @CheckForNull
  74. public List<String> getAdditionalFields() {
  75. return additionalFields;
  76. }
  77. public SearchRequest setAdditionalFields(@Nullable List<String> additionalFields) {
  78. this.additionalFields = additionalFields;
  79. return this;
  80. }
  81. @CheckForNull
  82. public Boolean getAsc() {
  83. return asc;
  84. }
  85. public SearchRequest setAsc(boolean asc) {
  86. this.asc = asc;
  87. return this;
  88. }
  89. @CheckForNull
  90. public Boolean getAssigned() {
  91. return assigned;
  92. }
  93. public SearchRequest setAssigned(@Nullable Boolean assigned) {
  94. this.assigned = assigned;
  95. return this;
  96. }
  97. @CheckForNull
  98. public List<String> getAssignees() {
  99. return assignees;
  100. }
  101. public SearchRequest setAssignees(@Nullable List<String> assignees) {
  102. this.assignees = assignees;
  103. return this;
  104. }
  105. @CheckForNull
  106. public List<String> getAuthors() {
  107. return authors;
  108. }
  109. public SearchRequest setAuthors(@Nullable List<String> authors) {
  110. this.authors = authors;
  111. return this;
  112. }
  113. @CheckForNull
  114. public List<String> getComponentKeys() {
  115. return componentKeys;
  116. }
  117. public SearchRequest setComponentKeys(@Nullable List<String> componentKeys) {
  118. this.componentKeys = componentKeys;
  119. return this;
  120. }
  121. @CheckForNull
  122. public List<String> getComponentUuids() {
  123. return componentUuids;
  124. }
  125. public SearchRequest setComponentUuids(@Nullable List<String> componentUuids) {
  126. this.componentUuids = componentUuids;
  127. return this;
  128. }
  129. @CheckForNull
  130. public String getCreatedAfter() {
  131. return createdAfter;
  132. }
  133. public SearchRequest setCreatedAfter(@Nullable String createdAfter) {
  134. this.createdAfter = createdAfter;
  135. return this;
  136. }
  137. @CheckForNull
  138. public String getCreatedAt() {
  139. return createdAt;
  140. }
  141. public SearchRequest setCreatedAt(@Nullable String createdAt) {
  142. this.createdAt = createdAt;
  143. return this;
  144. }
  145. @CheckForNull
  146. public String getCreatedBefore() {
  147. return createdBefore;
  148. }
  149. public SearchRequest setCreatedBefore(@Nullable String createdBefore) {
  150. this.createdBefore = createdBefore;
  151. return this;
  152. }
  153. @CheckForNull
  154. public String getCreatedInLast() {
  155. return createdInLast;
  156. }
  157. public SearchRequest setCreatedInLast(@Nullable String createdInLast) {
  158. this.createdInLast = createdInLast;
  159. return this;
  160. }
  161. @CheckForNull
  162. public List<String> getDirectories() {
  163. return directories;
  164. }
  165. public SearchRequest setDirectories(@Nullable List<String> directories) {
  166. this.directories = directories;
  167. return this;
  168. }
  169. @CheckForNull
  170. public String getFacetMode() {
  171. return facetMode;
  172. }
  173. public SearchRequest setFacetMode(@Nullable String facetMode) {
  174. this.facetMode = facetMode;
  175. return this;
  176. }
  177. @CheckForNull
  178. public List<String> getFacets() {
  179. return facets;
  180. }
  181. public SearchRequest setFacets(@Nullable List<String> facets) {
  182. this.facets = facets;
  183. return this;
  184. }
  185. @CheckForNull
  186. public List<String> getFileUuids() {
  187. return fileUuids;
  188. }
  189. public SearchRequest setFileUuids(@Nullable List<String> fileUuids) {
  190. this.fileUuids = fileUuids;
  191. return this;
  192. }
  193. @CheckForNull
  194. public List<String> getIssues() {
  195. return issues;
  196. }
  197. public SearchRequest setIssues(@Nullable List<String> issues) {
  198. this.issues = issues;
  199. return this;
  200. }
  201. @CheckForNull
  202. public List<String> getLanguages() {
  203. return languages;
  204. }
  205. public SearchRequest setLanguages(@Nullable List<String> languages) {
  206. this.languages = languages;
  207. return this;
  208. }
  209. @CheckForNull
  210. public List<String> getModuleUuids() {
  211. return moduleUuids;
  212. }
  213. public SearchRequest setModuleUuids(@Nullable List<String> moduleUuids) {
  214. this.moduleUuids = moduleUuids;
  215. return this;
  216. }
  217. @CheckForNull
  218. public Boolean getOnComponentOnly() {
  219. return onComponentOnly;
  220. }
  221. public SearchRequest setOnComponentOnly(Boolean onComponentOnly) {
  222. this.onComponentOnly = onComponentOnly;
  223. return this;
  224. }
  225. @CheckForNull
  226. public String getOrganization() {
  227. return organization;
  228. }
  229. public SearchRequest setOrganization(@Nullable String s) {
  230. this.organization = s;
  231. return this;
  232. }
  233. @CheckForNull
  234. public Integer getPage() {
  235. return page;
  236. }
  237. public SearchRequest setPage(int page) {
  238. this.page = page;
  239. return this;
  240. }
  241. @CheckForNull
  242. public Integer getPageSize() {
  243. return pageSize;
  244. }
  245. public SearchRequest setPageSize(int pageSize) {
  246. this.pageSize = pageSize;
  247. return this;
  248. }
  249. @CheckForNull
  250. public List<String> getProjectKeys() {
  251. return projectKeys;
  252. }
  253. public SearchRequest setProjectKeys(@Nullable List<String> projectKeys) {
  254. this.projectKeys = projectKeys;
  255. return this;
  256. }
  257. @CheckForNull
  258. public List<String> getProjectUuids() {
  259. return projectUuids;
  260. }
  261. public SearchRequest setProjectUuids(@Nullable List<String> projectUuids) {
  262. this.projectUuids = projectUuids;
  263. return this;
  264. }
  265. @CheckForNull
  266. public List<String> getResolutions() {
  267. return resolutions;
  268. }
  269. public SearchRequest setResolutions(@Nullable List<String> resolutions) {
  270. this.resolutions = resolutions;
  271. return this;
  272. }
  273. @CheckForNull
  274. public Boolean getResolved() {
  275. return resolved;
  276. }
  277. public SearchRequest setResolved(@Nullable Boolean resolved) {
  278. this.resolved = resolved;
  279. return this;
  280. }
  281. @CheckForNull
  282. public List<String> getRules() {
  283. return rules;
  284. }
  285. public SearchRequest setRules(@Nullable List<String> rules) {
  286. this.rules = rules;
  287. return this;
  288. }
  289. @CheckForNull
  290. public Boolean getSinceLeakPeriod() {
  291. return sinceLeakPeriod;
  292. }
  293. public SearchRequest setSinceLeakPeriod(@Nullable Boolean sinceLeakPeriod) {
  294. this.sinceLeakPeriod = sinceLeakPeriod;
  295. return this;
  296. }
  297. @CheckForNull
  298. public String getSort() {
  299. return sort;
  300. }
  301. public SearchRequest setSort(@Nullable String sort) {
  302. this.sort = sort;
  303. return this;
  304. }
  305. @CheckForNull
  306. public List<String> getSeverities() {
  307. return severities;
  308. }
  309. public SearchRequest setSeverities(@Nullable List<String> severities) {
  310. this.severities = severities;
  311. return this;
  312. }
  313. @CheckForNull
  314. public List<String> getStatuses() {
  315. return statuses;
  316. }
  317. public SearchRequest setStatuses(@Nullable List<String> statuses) {
  318. this.statuses = statuses;
  319. return this;
  320. }
  321. @CheckForNull
  322. public List<String> getTags() {
  323. return tags;
  324. }
  325. public SearchRequest setTags(@Nullable List<String> tags) {
  326. this.tags = tags;
  327. return this;
  328. }
  329. @CheckForNull
  330. public List<String> getTypes() {
  331. return types;
  332. }
  333. public SearchRequest setTypes(@Nullable List<String> types) {
  334. this.types = types;
  335. return this;
  336. }
  337. @CheckForNull
  338. public List<String> getComponentRootUuids() {
  339. return componentRootUuids;
  340. }
  341. public SearchRequest setComponentRootUuids(List<String> componentRootUuids) {
  342. this.componentRootUuids = componentRootUuids;
  343. return this;
  344. }
  345. @CheckForNull
  346. public List<String> getComponentRoots() {
  347. return componentRoots;
  348. }
  349. public SearchRequest setComponentRoots(@Nullable List<String> componentRoots) {
  350. this.componentRoots = componentRoots;
  351. return this;
  352. }
  353. @CheckForNull
  354. public List<String> getComponents() {
  355. return components;
  356. }
  357. public SearchRequest setComponents(@Nullable List<String> components) {
  358. this.components = components;
  359. return this;
  360. }
  361. @CheckForNull
  362. public List<String> getProjects() {
  363. return projects;
  364. }
  365. public SearchRequest setProjects(@Nullable List<String> projects) {
  366. this.projects = projects;
  367. return this;
  368. }
  369. @CheckForNull
  370. public String getBranch() {
  371. return branch;
  372. }
  373. public SearchRequest setBranch(@Nullable String branch) {
  374. this.branch = branch;
  375. return this;
  376. }
  377. @CheckForNull
  378. public String getPullRequest() {
  379. return pullRequest;
  380. }
  381. public SearchRequest setPullRequest(@Nullable String pullRequest) {
  382. this.pullRequest = pullRequest;
  383. return this;
  384. }
  385. }