From fb45076a9b0a2d983091305986b5debc3b1e2607 Mon Sep 17 00:00:00 2001 From: UO287568 Date: Mon, 11 Mar 2024 19:32:04 +0100 Subject: [PATCH] =?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