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.4KB

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