almost completed manage diagram
This commit is contained in:
parent
44f1312ee7
commit
faa9dfc1f8
|
@ -7,34 +7,96 @@ hide footbox
|
||||||
|
|
||||||
alt Manage Teams
|
alt Manage Teams
|
||||||
Admin->Website: manageTeamsButton()
|
Admin->Website: manageTeamsButton()
|
||||||
|
activate Admin
|
||||||
|
activate Website
|
||||||
Website-->Admin: redirect(/tournament/id/teams)
|
Website-->Admin: redirect(/tournament/id/teams)
|
||||||
opt Add
|
opt Add
|
||||||
Admin->Website: addTeam(name,users)
|
Admin->Website: addTeam(name,members)
|
||||||
opt Error
|
opt Error
|
||||||
Website-->Admin: displayError(error)
|
Website-->Admin: displayError(error)
|
||||||
end
|
end
|
||||||
Website->Server: addTeam(id,name,users)
|
Website->Server: addTeam(id,name,members)
|
||||||
Server-->Website: postTeam(team)
|
activate Server
|
||||||
Website-->Admin: updateTeamList(team)
|
Server-->Website: postTeam(team)
|
||||||
end
|
deactivate Server
|
||||||
|
Website-->Admin: updateTeamList(team)
|
||||||
|
deactivate Admin
|
||||||
|
deactivate Website
|
||||||
|
end
|
||||||
opt Edit
|
opt Edit
|
||||||
Admin->Website:
|
Admin->Website: selectTeam(team)
|
||||||
|
activate Admin
|
||||||
|
activate Website
|
||||||
|
Website->Server: getTeam(team)
|
||||||
|
activate Server
|
||||||
|
Server-->Website: postTeam(team)
|
||||||
|
deactivate Server
|
||||||
|
Website-->Admin: showTeam(team,members)
|
||||||
|
opt Add Member
|
||||||
|
Admin->Website: addMember(name)
|
||||||
|
activate Server
|
||||||
|
Website->Server: updateTeam(team,member:name)
|
||||||
|
Website-->Admin: showTeam(team,member)
|
||||||
|
deactivate Server
|
||||||
|
end
|
||||||
|
opt Remove Member
|
||||||
|
Admin->Website: removeMember(id)
|
||||||
|
activate Server
|
||||||
|
Website->Server: updateTeam(team,member:id)
|
||||||
|
Website-->Admin: showTeam(team,member)
|
||||||
|
deactivate Server
|
||||||
|
deactivate Admin
|
||||||
|
deactivate Website
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
opt Delete
|
opt Delete
|
||||||
|
activate Admin
|
||||||
|
activate Website
|
||||||
|
Admin->Website: deleteTeam(team)
|
||||||
|
Website-->Admin: confirm ? Yes : No;
|
||||||
|
opt Error
|
||||||
|
Website-->Admin: displayError(error)
|
||||||
|
end
|
||||||
|
opt Yes
|
||||||
|
Website->Server: removeTeam(team:id)
|
||||||
|
activate Server
|
||||||
|
Server-->Website: postTeam(team)
|
||||||
|
deactivate Server
|
||||||
|
Website-->Admin: updateTeamList(team)
|
||||||
|
end
|
||||||
|
opt No
|
||||||
|
Website-->Admin: redirect(/tournament/tournament/id/teams)
|
||||||
|
end
|
||||||
|
deactivate Admin
|
||||||
|
deactivate Website
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
alt Select Match Winner
|
alt Select Match Winner
|
||||||
Admin->Website: chooseWinner(match,team)
|
Admin->Website: chooseWinner(match,team)
|
||||||
Website->Server: updateMatch(id:matchID,winner:teamID)
|
Website->Server: updateMatch(id:matchID,winner:teamID)
|
||||||
activate Server
|
activate Server
|
||||||
Server-->Website: updatePartentOf(child:matchID)
|
Server-->Website: updateParentOf(child:matchID)
|
||||||
deactivate Server
|
deactivate Server
|
||||||
Website-->Admin: displayTournament(Tournament)
|
Website-->Admin: displayTournament(Tournament)
|
||||||
end
|
end
|
||||||
|
|
||||||
alt Delete Tournament
|
alt Delete Tournament
|
||||||
Admin->Website:
|
Admin->Website: removeTournament(tournament)
|
||||||
|
Website-->Admin: confirm ? Yes : No;
|
||||||
|
opt Yes
|
||||||
|
activate Server
|
||||||
|
Website->Server: removeTournament(tournament:id)
|
||||||
|
Website-->Admin: redirect(/homePage)
|
||||||
|
deactivate Server
|
||||||
|
end
|
||||||
|
opt No
|
||||||
|
Website-->Admin: redirect(/tournaments/id/)
|
||||||
|
end
|
||||||
|
deactivate Admin
|
||||||
|
deactivate Website
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue