Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

PermissionTemplateDto.java 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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.permission.template;
  21. import java.util.Date;
  22. import javax.annotation.CheckForNull;
  23. import javax.annotation.Nullable;
  24. public class PermissionTemplateDto {
  25. private String name;
  26. private String uuid;
  27. private String description;
  28. private String keyPattern;
  29. private Date createdAt;
  30. private Date updatedAt;
  31. public String getName() {
  32. return name;
  33. }
  34. public PermissionTemplateDto setName(String name) {
  35. this.name = name;
  36. return this;
  37. }
  38. /**
  39. * @since 5.2 the kee column is a proper uuid. Before that it was build on the name + timestamp
  40. */
  41. public String getUuid() {
  42. return uuid;
  43. }
  44. /**
  45. * @since 5.2 the kee column is a proper uuid. Before it was build on the name + timestamp
  46. */
  47. public PermissionTemplateDto setUuid(String uuid) {
  48. this.uuid = uuid;
  49. return this;
  50. }
  51. @CheckForNull
  52. public String getDescription() {
  53. return description;
  54. }
  55. public PermissionTemplateDto setDescription(@Nullable String description) {
  56. this.description = description;
  57. return this;
  58. }
  59. @CheckForNull
  60. public String getKeyPattern() {
  61. return keyPattern;
  62. }
  63. public PermissionTemplateDto setKeyPattern(@Nullable String regexp) {
  64. this.keyPattern = regexp;
  65. return this;
  66. }
  67. public Date getCreatedAt() {
  68. return createdAt;
  69. }
  70. public PermissionTemplateDto setCreatedAt(Date createdAt) {
  71. this.createdAt = createdAt;
  72. return this;
  73. }
  74. public Date getUpdatedAt() {
  75. return updatedAt;
  76. }
  77. public PermissionTemplateDto setUpdatedAt(Date updatedAt) {
  78. this.updatedAt = updatedAt;
  79. return this;
  80. }
  81. }