From 80caa46ce4266517d0c1ca5117234c9cbd779ed7 Mon Sep 17 00:00:00 2001 From: UO287568 Date: Mon, 11 Mar 2024 19:28:06 +0100 Subject: [PATCH 1/5] =?UTF-8?q?Eliminaci=C3=B3n=20de=20CustomErrorControll?= =?UTF-8?q?er?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/08_concepts.adoc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/docs/src/08_concepts.adoc b/docs/src/08_concepts.adoc index b307352a..48ffd4f5 100644 --- a/docs/src/08_concepts.adoc +++ b/docs/src/08_concepts.adoc @@ -481,10 +481,6 @@ class CustomConfiguration { + addInterceptors(registry: InterceptorRegistry): void } -class CustomErrorController { - + error(model: Model, webRequest: HttpServletRequest): String -} - class WiqEs04bApplication { + main(args: String[]): void } @@ -495,7 +491,6 @@ SecurityConfig "1" *- "1" UserDetailsService SecurityConfig "1" *- "1" CustomAuthenticationFailureHandler CustomAuthenticationFailureHandler --|> SimpleUrlAuthenticationFailureHandler WebMvcConfigurer <|.. CustomConfiguration -CustomErrorController --|> BasicErrorController @enduml ---- From 2b991e913fd65cc1b273210e0d590661c7f965ec Mon Sep 17 00:00:00 2001 From: UO287568 Date: Mon, 11 Mar 2024 19:28:38 +0100 Subject: [PATCH 2/5] =?UTF-8?q?Eliminaci=C3=B3n=20de=20HomeController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/08_concepts.adoc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/docs/src/08_concepts.adoc b/docs/src/08_concepts.adoc index 48ffd4f5..d90b4e89 100644 --- a/docs/src/08_concepts.adoc +++ b/docs/src/08_concepts.adoc @@ -318,12 +318,6 @@ class QuestionGeneratorTestController { + test(): void } -class HomeController { - - playerService: PlayerService - + home(): String - + apiHome(): String -} - class PlayersController { - playerService: PlayerService - signUpValidator: SignUpValidator @@ -416,7 +410,6 @@ ApiKey "1" - "1" Player ApiKey "1" - "*" RestApiAccessLog Category "1" - "*" Question Player "1" - "*" GameSession -HomeController "1" *- "1" PlayerService PlayersController "1" *- "1" PlayerService PlayersController "1" *- "1" SignUpValidator PlayersController ..> PlayerDto From 79fd928ed61cc775396b1b7d3fbe419ee884042a Mon Sep 17 00:00:00 2001 From: UO287568 Date: Mon, 11 Mar 2024 19:29:09 +0100 Subject: [PATCH 3/5] =?UTF-8?q?Eliminaci=C3=B3n=20de=20PlayersController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/08_concepts.adoc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/src/08_concepts.adoc b/docs/src/08_concepts.adoc index d90b4e89..0a9362d0 100644 --- a/docs/src/08_concepts.adoc +++ b/docs/src/08_concepts.adoc @@ -318,15 +318,6 @@ class QuestionGeneratorTestController { + test(): void } -class PlayersController { - - playerService: PlayerService - - signUpValidator: SignUpValidator - + showRegistrationForm(model: Model): String - + registerUserAccount(request: HttpServletRequest, user: PlayerDto, result: BindingResult, model: Model): String - + showLoginForm(model: Model, error: String, session: HttpSession): String - + home(model: Model, principal: Principal): String -} - class RestApiController { - apiKeyService: ApiKeyService - restApiService: RestApiService @@ -410,9 +401,6 @@ ApiKey "1" - "1" Player ApiKey "1" - "*" RestApiAccessLog Category "1" - "*" Question Player "1" - "*" GameSession -PlayersController "1" *- "1" PlayerService -PlayersController "1" *- "1" SignUpValidator -PlayersController ..> PlayerDto RestApiController "1" *- "1" ApiKeyService RestApiController "1" *- "1" RestApiService RestApiController ..> ApiKey From 047aea314fa45c447d789de4738ea5eefb51458d Mon Sep 17 00:00:00 2001 From: UO287568 Date: Mon, 11 Mar 2024 19:29:44 +0100 Subject: [PATCH 4/5] =?UTF-8?q?Eliminaci=C3=B3n=20de=20RestApiController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/08_concepts.adoc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/src/08_concepts.adoc b/docs/src/08_concepts.adoc index 0a9362d0..096d4886 100644 --- a/docs/src/08_concepts.adoc +++ b/docs/src/08_concepts.adoc @@ -318,14 +318,6 @@ class QuestionGeneratorTestController { + test(): void } -class RestApiController { - - apiKeyService: ApiKeyService - - restApiService: RestApiService - + getPlayers(response: HttpServletResponse, params: Map): String - + getQuestions(response: HttpServletResponse, params: Map): String - + getApiKeyFromParams(params: Map): String -} - class SignUpValidator { - playerService: PlayerService + supports(clazz: Class): boolean @@ -401,11 +393,6 @@ ApiKey "1" - "1" Player ApiKey "1" - "*" RestApiAccessLog Category "1" - "*" Question Player "1" - "*" GameSession -RestApiController "1" *- "1" ApiKeyService -RestApiController "1" *- "1" RestApiService -RestApiController ..> ApiKey -RestApiController ..> Player -RestApiController ..> Question QuestionGeneratorTestController "1" *- "1" CapitalQuestionGenerator QuestionGeneratorTestController ..> Question AbstractQuestionGenerator "1" - "*" Question From fb45076a9b0a2d983091305986b5debc3b1e2607 Mon Sep 17 00:00:00 2001 From: UO287568 Date: Mon, 11 Mar 2024 19:32:04 +0100 Subject: [PATCH 5/5] =?UTF-8?q?Eliminaci=C3=B3n=20de=20los=20repositorios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/src/08_concepts.adoc | 59 --------------------------------------- 1 file changed, 59 deletions(-) diff --git a/docs/src/08_concepts.adoc b/docs/src/08_concepts.adoc index 096d4886..2aec4db4 100644 --- a/docs/src/08_concepts.adoc +++ b/docs/src/08_concepts.adoc @@ -213,44 +213,6 @@ class RestApiServiceImpl { + getQuestions(params: Map): List } -interface CrudRepository { - + save(entity: T): T - + findById(id: ID): Optional - + findAll(): List -} - -interface PlayerRepository { - + findByEmail(email: String): Player - + findByUsername(nickname: String): Player -} - -interface RoleRepository { -} - -interface AnswerRepository { - + findByQuestion(question: Question): List -} - -interface ApiKeyRepository { - + findByKeyToken(key: String): ApiKey -} - -interface CategoryRepository { - + findByName(name: String): Category -} - -interface GameSessionRepository { -} - -interface QuestionRepository { - + findByStatement(statement: String): Question -} - -interface RestApiLogRepository { - + findByApiKey(apiKey: ApiKey): List - + findByUser(user: Player): List -} - class PlayerDto { - username: String - email: String @@ -329,14 +291,6 @@ JsonEntity <|.. Category JsonEntity <|.. GameSession JsonEntity <|.. Player JsonEntity <|.. Question -AnswerRepository --|> CrudRepository -ApiKeyRepository --|> CrudRepository -CategoryRepository --|> CrudRepository -GameSessionRepository --|> CrudRepository -PlayerRepository --|> CrudRepository -QuestionRepository --|> CrudRepository -RestApiLogRepository --|> CrudRepository -RoleRepository --|> CrudRepository AnswerService <|.. AnswerServiceImpl ApiKeyService <|.. ApiKeyServiceImpl CategoryService <|.. CategoryServiceImpl @@ -359,35 +313,22 @@ PlayerService ..> PlayerDto PlayerService ..> Player QuestionService ..> Question RestApiService ..> ApiKey -CustomUserDetailsService "1" *- "1" PlayerRepository CustomUserDetailsService ..> Player CustomUserDetailsService ..> Role InsertSampleDataService "1" *- "1" PlayerService InsertSampleDataService "1" *- "1" QuestionService InsertSampleDataService "1" *- "1" CategoryService -InsertSampleDataService "1" *- "1" QuestionRepository -InsertSampleDataService "1" *- "1" GameSessionRepository InsertSampleDataService ..> PlayerDto InsertSampleDataService ..> GameSession InsertSampleDataService ..> QuestionGenerator -AnswerServiceImpl "1" *- "1" AnswerRepository -ApiKeyServiceImpl "1" *- "1" ApiKeyRepository -CategoryServiceImpl "1" *- "1" CategoryRepository -PlayerServiceImpl "1" *- "1" PlayerRepository PlayerServiceImpl "1" *- "1" RoleService PlayerServiceImpl "1" *- "1" PasswordEncoder PlayerServiceImpl ..> Role -QuestionServiceImpl "1" *- "1" QuestionRepository RestApiServiceImpl "1" *- "1" PlayerService -RestApiServiceImpl "1" *- "1" RestApiLogRepository RestApiServiceImpl "1" *- "1" QuestionService RestApiServiceImpl ..> Player RestApiServiceImpl ..> Question -RoleServiceImpl "1" *- "1" RoleRepository RestApiServiceImpl ..> Role -AnswerRepository ..> Question -RestApiLogRepository ..> ApiKey -RestApiLogRepository ..> Player Answer "*" - "1" Question ApiKey "1" - "1" Player ApiKey "1" - "*" RestApiAccessLog