Login Sequence Diagram

This commit is contained in:
Kristoffer Juelsenn 2022-03-15 13:16:38 +01:00
parent 897b9138cf
commit ff2194bad6
1 changed files with 7 additions and 28 deletions

View File

@ -1,43 +1,22 @@
@startuml Asura Tournament System @startuml Asura Tournament System
Actor User #lightblue
Actor Admin #palegreen Actor Admin #palegreen
participant Website participant Website
database Server #brown database Server #brown
hide footbox hide footbox
User->Website: viewTournament(Tournament)
activate User
activate Website
Website->Server: fetchTournament(Tournament)
activate Server
Server-->Website: {status: success | failure}
alt status = success
Website-->User: displayTournament(Tournament)
else status = failure
Website-->User: displayError(error)
deactivate User
end
Admin->Website: login(username, passwd) Admin->Website: login(username, passwd)
activate Admin activate Admin
activate Website
Website->Server: Login Request Website->Server: Login Request
activate Server
Server-->Website: {status: success | failure} Server-->Website: {status: success | failure}
deactivate Server deactivate Server
alt status = success alt status = success
Website-->Admin: "Login Successful" Website-->Admin: "Login Successful"
Website->Admin: redirect(adminPage)
' Website-->Admin: Login
end end
Website->Admin: managementOptions(manage,edit,create,delete) deactivate Website
' Website-->Admin: Login successful deactivate Admin
Admin->Website: createTournament(Tournament)
Website->Server: sendInfo(Tournament)
Server-->Website: {status: success | failure}
alt status = success
Website->Server: fetchTournament(Tournament)
Server-->Website: {status: success | failure}
' deactivate Server
Website-->Admin: displayTournament(Tournament)
Admin->Website: editTournament(Tournament)
' deactivate Admin
' deactivate Website
end
@enduml @enduml