asura-tmdb/documentation/sequence_diagrams/sequenceDiagramManage.puml

41 lines
949 B
Plaintext
Raw Normal View History

2022-03-16 11:23:33 +01:00
@startuml Manage Tournament
title Manage Tournament
Actor Admin #palegreen
participant Website
database Server #brown
hide footbox
alt Manage Teams
Admin->Website: manageTeamsButton()
Website-->Admin: redirect(/tournament/id/teams)
opt Add
2022-03-16 12:17:23 +01:00
Admin->Website: addTeam(name,users)
opt Error
Website-->Admin: displayError(error)
end
Website->Server: addTeam(id,name,users)
Server-->Website: postTeam(team)
Website-->Admin: updateTeamList(team)
2022-03-16 11:23:33 +01:00
end
2022-03-16 12:17:23 +01:00
opt Edit
Admin->Website:
2022-03-16 11:23:33 +01:00
end
opt Delete
end
end
alt Select Match Winner
Admin->Website: chooseWinner(match,team)
Website->Server: updateMatch(id:matchID,winner:teamID)
activate Server
Server-->Website: updatePartentOf(child:matchID)
deactivate Server
2022-03-16 12:17:23 +01:00
Website-->Admin: displayTournament(Tournament)
2022-03-16 11:23:33 +01:00
end
2022-03-16 12:17:23 +01:00
alt Delete Tournament
Admin->Website:
end
2022-03-16 11:23:33 +01:00
@enduml