From 04f7859ab0bcff24a9ab1d621c67d37ba44aa5bb Mon Sep 17 00:00:00 2001 From: Sébastien Lesaint Date: Fri, 10 Feb 2017 16:16:40 +0100 Subject: SONAR-8752 support userId in OrganizationDto and OrganizationDao --- .../java/org/sonar/db/organization/OrganizationDto.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sonar-db/src/main/java/org/sonar') 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 96b55c80aca..79705021095 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 @@ -19,6 +19,7 @@ */ package org.sonar.db.organization; +import javax.annotation.CheckForNull; import javax.annotation.Nullable; public class OrganizationDto { @@ -38,6 +39,8 @@ public class OrganizationDto { * Flag indicated whether being root is required to be able to delete this organization. */ private boolean guarded = false; + /** If of the user for whom the organization was created, can be null. */ + private Long userId; private long createdAt; private long updatedAt; @@ -104,6 +107,16 @@ public class OrganizationDto { return this; } + @CheckForNull + public Long getUserId() { + return userId; + } + + public OrganizationDto setUserId(@Nullable Long userId) { + this.userId = userId; + return this; + } + public long getCreatedAt() { return createdAt; } @@ -132,6 +145,7 @@ public class OrganizationDto { ", url='" + url + '\'' + ", avatarUrl='" + avatarUrl + '\'' + ", guarded=" + guarded + + ", userId=" + userId + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + '}'; -- cgit v1.2.3