diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-17 19:20:13 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-17 20:46:57 +0200 |
commit | c0e82d3ac6b1ceae1053b7139f608d86e90faf32 (patch) | |
tree | 313245ea5b7959abf920fab1f72e56a083cc53e1 /sonar-plugin-api | |
parent | 183b104dadd5b350d4d00a1ef2336094755e5f4f (diff) | |
download | sonarqube-c0e82d3ac6b1ceae1053b7139f608d86e90faf32.tar.gz sonarqube-c0e82d3ac6b1ceae1053b7139f608d86e90faf32.zip |
Remove ability to get users from batch
+ drop Hibernate model "User"
Diffstat (limited to 'sonar-plugin-api')
3 files changed, 3 insertions, 20 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/User.java b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/User.java index 15fce83fd9c..d5049fcfb15 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/User.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/User.java @@ -23,24 +23,13 @@ import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; import org.sonar.api.database.BaseIdentifiable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; - /** * @since 2.2 */ -@Entity -@Table(name = "users") public class User extends BaseIdentifiable { - @Column(name = "login", updatable = true, nullable = true, length = 255) private String login; - - @Column(name = "name", updatable = true, nullable = true, length = 200) private String name; - - @Column(name = "email", updatable = true, nullable = true, length = 100) private String email; public String getLogin() { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/security/UserFinder.java b/sonar-plugin-api/src/main/java/org/sonar/api/security/UserFinder.java index 94c78120fb6..8e07887f421 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/security/UserFinder.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/security/UserFinder.java @@ -19,16 +19,14 @@ */ package org.sonar.api.security; -import org.sonar.api.batch.BatchSide; -import org.sonar.api.server.ServerSide; import org.sonar.api.database.model.User; +import org.sonar.api.server.ServerSide; /** * @since 2.10 * @deprecated since 5.1 DB access will soon be removed from batch side */ @Deprecated -@BatchSide @ServerSide public interface UserFinder { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/user/UserFinder.java b/sonar-plugin-api/src/main/java/org/sonar/api/user/UserFinder.java index a73ff532466..8eed4f8da38 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/user/UserFinder.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/user/UserFinder.java @@ -19,19 +19,15 @@ */ package org.sonar.api.user; -import org.sonar.api.batch.BatchSide; -import org.sonar.api.server.ServerSide; - -import javax.annotation.CheckForNull; - import java.util.List; +import javax.annotation.CheckForNull; +import org.sonar.api.server.ServerSide; /** * @since 3.6 * @deprecated since 5.1 DB access will soon be removed from batch side */ @Deprecated -@BatchSide @ServerSide public interface UserFinder { |