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.

ProjectAlmSettingDto.java 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2024 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.db.alm.setting;
  21. import javax.annotation.CheckForNull;
  22. import javax.annotation.Nullable;
  23. public class ProjectAlmSettingDto {
  24. /**
  25. * Not empty. Max size is 40. Obviously it is unique.
  26. */
  27. private String uuid;
  28. /**
  29. * Non-null UUID of project. Max size is 40.
  30. * @see org.sonar.db.entity.EntityDto#getUuid()
  31. */
  32. private String projectUuid;
  33. /**
  34. * Non-null UUID of the ALM Setting UUID. Max size is 40.
  35. * @see AlmSettingDto#getUuid()
  36. */
  37. private String almSettingUuid;
  38. /**
  39. * Identifier of the repository in the ALM. Max size is 256.
  40. * This column will only be fed when alm is GitHub or Bitbucket.
  41. * It will be null when the ALM is Azure DevOps.
  42. */
  43. private String almRepo;
  44. /**
  45. * Slug of the repository in the ALM. Max size is 256.
  46. * This column will only be fed when alm is Bitbucket.
  47. * It will be null when the ALM is Azure DevOps, or GitHub.
  48. */
  49. private String almSlug;
  50. /**
  51. * Boolean flag which enable/disable inserting summary of analysis as a comment
  52. * It will be null when the ALM is other than GitHub
  53. */
  54. private Boolean summaryCommentEnabled;
  55. /**
  56. * Boolean to know if this SonarQube project is part of a monorepo
  57. * default value is false
  58. */
  59. private Boolean monorepo;
  60. private long updatedAt;
  61. private long createdAt;
  62. public String getUuid() {
  63. return uuid;
  64. }
  65. void setUuid(String uuid) {
  66. this.uuid = uuid;
  67. }
  68. public String getProjectUuid() {
  69. return projectUuid;
  70. }
  71. public ProjectAlmSettingDto setProjectUuid(String projectUuid) {
  72. this.projectUuid = projectUuid;
  73. return this;
  74. }
  75. public String getAlmSettingUuid() {
  76. return almSettingUuid;
  77. }
  78. public ProjectAlmSettingDto setAlmSettingUuid(String almSettingUuid) {
  79. this.almSettingUuid = almSettingUuid;
  80. return this;
  81. }
  82. @CheckForNull
  83. public String getAlmRepo() {
  84. return almRepo;
  85. }
  86. public ProjectAlmSettingDto setAlmRepo(@Nullable String almRepo) {
  87. this.almRepo = almRepo;
  88. return this;
  89. }
  90. @CheckForNull
  91. public String getAlmSlug() {
  92. return almSlug;
  93. }
  94. public ProjectAlmSettingDto setAlmSlug(@Nullable String almSlug) {
  95. this.almSlug = almSlug;
  96. return this;
  97. }
  98. public Boolean getSummaryCommentEnabled() {
  99. return summaryCommentEnabled;
  100. }
  101. public ProjectAlmSettingDto setSummaryCommentEnabled(@Nullable Boolean summaryCommentEnabled) {
  102. this.summaryCommentEnabled = summaryCommentEnabled;
  103. return this;
  104. }
  105. public Boolean getMonorepo() {
  106. return monorepo;
  107. }
  108. public ProjectAlmSettingDto setMonorepo(Boolean monorepo) {
  109. this.monorepo = monorepo;
  110. return this;
  111. }
  112. long getUpdatedAt() {
  113. return updatedAt;
  114. }
  115. void setUpdatedAt(long updatedAt) {
  116. this.updatedAt = updatedAt;
  117. }
  118. long getCreatedAt() {
  119. return createdAt;
  120. }
  121. void setCreatedAt(long createdAt) {
  122. this.createdAt = createdAt;
  123. }
  124. }