diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2017-02-07 17:58:11 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2017-02-10 09:48:36 +0100 |
commit | caf7aba77fe1148e0514ab0fa24a5507d585ad37 (patch) | |
tree | be72735ad8ddce5e0964e996a29dfcc48d5dde05 /sonar-db/src/main/java/org/sonar | |
parent | a60f3c39d100eb0eae125c01c6932ddfb37417c9 (diff) | |
download | sonarqube-caf7aba77fe1148e0514ab0fa24a5507d585ad37.tar.gz sonarqube-caf7aba77fe1148e0514ab0fa24a5507d585ad37.zip |
SONAR-8754 support guarded in OrganizationDto and OrganizationDao
Diffstat (limited to 'sonar-db/src/main/java/org/sonar')
-rw-r--r-- | sonar-db/src/main/java/org/sonar/db/organization/OrganizationDto.java | 50 |
1 files changed, 32 insertions, 18 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/organization/OrganizationDto.java b/sonar-db/src/main/java/org/sonar/db/organization/OrganizationDto.java index 095f40e7ef2..2644132fc40 100644 --- a/sonar-db/src/main/java/org/sonar/db/organization/OrganizationDto.java +++ b/sonar-db/src/main/java/org/sonar/db/organization/OrganizationDto.java @@ -34,6 +34,10 @@ public class OrganizationDto { private String url; /** avatar url can be null */ private String avatarUrl; + /** + * Flag indicated whether being root is required to be able to delete this organization. + */ + private boolean guarded = false; private long createdAt; private long updatedAt; @@ -64,24 +68,6 @@ public class OrganizationDto { return this; } - public long getCreatedAt() { - return createdAt; - } - - public OrganizationDto setCreatedAt(long createdAt) { - this.createdAt = createdAt; - return this; - } - - public long getUpdatedAt() { - return updatedAt; - } - - public OrganizationDto setUpdatedAt(long updatedAt) { - this.updatedAt = updatedAt; - return this; - } - public String getDescription() { return description; } @@ -109,6 +95,33 @@ public class OrganizationDto { return this; } + public boolean isGuarded() { + return guarded; + } + + public OrganizationDto setGuarded(boolean guarded) { + this.guarded = guarded; + return this; + } + + public long getCreatedAt() { + return createdAt; + } + + public OrganizationDto setCreatedAt(long createdAt) { + this.createdAt = createdAt; + return this; + } + + public long getUpdatedAt() { + return updatedAt; + } + + public OrganizationDto setUpdatedAt(long updatedAt) { + this.updatedAt = updatedAt; + return this; + } + @Override public String toString() { return "OrganizationDto{" + @@ -118,6 +131,7 @@ public class OrganizationDto { ", description='" + description + '\'' + ", url='" + url + '\'' + ", avatarUrl='" + avatarUrl + '\'' + + ", guarded=" + guarded + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + '}'; |