summaryrefslogtreecommitdiff
path: root/20-implementierungsheft/assets/diagrams/sequencediagram-getEpisodeActionsOfPodcastSince.puml
blob: d8797d1b4e0c4b4149619acd921079018cea5351 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@startuml

' title =**Get Episode Actions of Podcast Since**

participant EpisodeActionController << (C, #ADD1B2) @Controller >>
-> EpisodeActionController: ""GET /api/2/episodes/{username}.json"" \n//@RequestParam("podcast") String podcastURL// \n//@RequestParam("device") String deviceID// \n//@RequestParam("since") long since// \n//@RequestParam("aggregated") boolean aggregated// \n\n-> getEpisodeActionsOfPodcastSince(""username"", //podcastURL//, //deviceID//, //since//, //aggregated//)
note right
    Die Parameter //deviceID// und //aggregated// werden ignoriert.
    Siehe Notiz in Sequenzdiagramm **Get All Episode Actions**.
end note
activate EpisodeActionController
participant EpisodeActionService << (C, #ADD1B2) @Service >>
EpisodeActionController -> EpisodeActionService: getEpisodeActionsOfPodcastSince(""username"", //podcastURL//, //since//)
activate EpisodeActionService
participant EpisodeActionDataAccessService << (C, #ADD1B2) @Repository >>
EpisodeActionService -> EpisodeActionDataAccessService: getEpisodeActionsOfPodcastSince(""username"", //podcastURL//, //since//)
activate EpisodeActionDataAccessService
database Database
EpisodeActionDataAccessService -> Database: get all EpisodeActions the given podcast (//podcastURL//)
activate Database
Database --> EpisodeActionDataAccessService: List<EpisodeAction> selectedEpisodeActions \n-> then remove all older than //since//
EpisodeActionDataAccessService -> Database: join EpisodeActions in selectedEpisodeActions with episodeURL of Episode
Database --> EpisodeActionDataAccessService
deactivate Database
EpisodeActionDataAccessService --> EpisodeActionService: List<EpisodeActionPost> episodeActionPosts
deactivate EpisodeActionDataAccessService
EpisodeActionService --> EpisodeActionController: List<EpisodeActionPost> episodeActionPosts
deactivate EpisodeActionService
<-- EpisodeActionController: ResponseEntity<EpisodeActionGetResponse> response \n\n-> ""HTTP status code"" \n-> ""JSON""
deactivate EpisodeActionController

@enduml