From c25cf64f4b33802181b44813706d7d2d3a9f61af Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Thu, 25 Feb 2021 18:32:17 +0100 Subject: [PATCH] #68 Clean Entities --- .idea/codeStyles/Project.xml | 1 - .../Lint_Test_Sonar___Run.xml | 42 ------------------- .idea/runConfigurations/Sonarqube.xml | 4 +- .../Sonarqube_without_test.xml | 2 +- .../fr/dcproject/common/dto/CreatedAt.kt | 2 +- .../fr/dcproject/common/dto/Versionable.kt | 4 +- .../fr/dcproject/common/entity/Action.kt | 28 +++++++++++++ .../fr/dcproject/common/entity/ActionBy.kt | 25 +++++++++++ .../fr/dcproject/common/entity/CreatedBy.kt | 14 ------- .../kotlin/fr/dcproject/common/entity/Date.kt | 30 +++++++++++++ .../fr/dcproject/common/entity/EntityI.kt | 10 +++-- .../fr/dcproject/common/entity/Extra.kt | 14 +++---- .../fr/dcproject/common/entity/Versionable.kt | 22 ++++++---- .../fr/dcproject/component/article/Article.kt | 28 ++++++------- .../component/article/ArticleAccessControl.kt | 4 +- .../component/article/ArticleViewManager.kt | 4 +- .../fr/dcproject/component/auth/User.kt | 18 ++++---- .../fr/dcproject/component/citizen/Citizen.kt | 24 +++++------ .../component/citizen/CitizenAccessControl.kt | 6 +-- .../article/CommentArticleRepository.kt | 4 +- .../CommentConstitutionRepository.kt | 4 +- .../component/comment/generic/Comment.kt | 26 +++++------- .../comment/generic/CommentAccessControl.kt | 14 +++---- .../comment/generic/CommentRepository.kt | 4 +- .../component/constitution/Constitution.kt | 24 +++++------ .../constitution/ConstitutionAccessControl.kt | 10 ++--- .../constitution/routes/CreateConstitution.kt | 4 +- .../fr/dcproject/component/follow/Follow.kt | 15 +++---- .../component/follow/FollowRepository.kt | 10 ++--- .../component/notification/Notification.kt | 4 +- .../notification/NotificationEmailSender.kt | 6 +-- .../component/opinion/OpinionAccessControl.kt | 12 +++--- .../component/opinion/entity/Opinion.kt | 16 ++++--- .../component/opinion/entity/OpinionChoice.kt | 18 ++++---- .../component/views/entity/ViewAggregation.kt | 5 +-- .../component/vote/VoteAccessControl.kt | 4 +- .../dcproject/component/vote/entity/Vote.kt | 23 +++++----- .../component/vote/entity/VoteAggregation.kt | 8 ++-- .../component/workgroup/Workgroup.kt | 36 +++++++--------- 39 files changed, 265 insertions(+), 264 deletions(-) delete mode 100644 .idea/runConfigurations/Lint_Test_Sonar___Run.xml create mode 100644 src/main/kotlin/fr/dcproject/common/entity/Action.kt create mode 100644 src/main/kotlin/fr/dcproject/common/entity/ActionBy.kt delete mode 100644 src/main/kotlin/fr/dcproject/common/entity/CreatedBy.kt create mode 100644 src/main/kotlin/fr/dcproject/common/entity/Date.kt diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index e5b488f..9ac18de 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -15,7 +15,6 @@