diff --git a/documentation/UD_tests/1st_round/CreateTournamentTest.html b/documentation/UD_tests/1st_round/CreateTournamentTest.html new file mode 100644 index 0000000..eb345bd --- /dev/null +++ b/documentation/UD_tests/1st_round/CreateTournamentTest.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:http://10.24.1.193:3000/create
  • scan date:2022-03-28 12:00 PM UTC
  • comment:First "Create tournament" page test - results

Summary

Automated checks

Failed instances 2

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/1st_round/EditTeamTest.html b/documentation/UD_tests/1st_round/EditTeamTest.html new file mode 100644 index 0000000..6a09086 --- /dev/null +++ b/documentation/UD_tests/1st_round/EditTeamTest.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:http://10.24.1.193:3000/tournament/2/teams
  • scan date:2022-03-28 12:59 PM UTC
  • comment:First "Edit Team" test - results

Summary

Automated checks

Failed instances 1

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/1st_round/ManageTeamsTest.html b/documentation/UD_tests/1st_round/ManageTeamsTest.html new file mode 100644 index 0000000..01b2a1b --- /dev/null +++ b/documentation/UD_tests/1st_round/ManageTeamsTest.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:http://10.24.1.193:3000/tournament/2/teams
  • scan date:2022-03-28 12:54 PM UTC
  • comment:First "Manage teams" page test - results

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/1st_round/ManageTournamentTest.html b/documentation/UD_tests/1st_round/ManageTournamentTest.html new file mode 100644 index 0000000..b273f8c --- /dev/null +++ b/documentation/UD_tests/1st_round/ManageTournamentTest.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:http://10.24.1.193:3000/tournament/1/manage
  • scan date:2022-03-28 12:09 PM UTC
  • comment:First "Manage tournament" test - results

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/1st_round/TournamentsTest.html b/documentation/UD_tests/1st_round/TournamentsTest.html new file mode 100644 index 0000000..2186244 --- /dev/null +++ b/documentation/UD_tests/1st_round/TournamentsTest.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:http://10.24.1.193:3000/
  • scan date:2022-03-28 12:13 PM UTC
  • comment:First "Tournaments" page test - results

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/1st_round/ViewTournamentsTest.html b/documentation/UD_tests/1st_round/ViewTournamentsTest.html new file mode 100644 index 0000000..7ad9c51 --- /dev/null +++ b/documentation/UD_tests/1st_round/ViewTournamentsTest.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:http://localhost:3000/tournament/2
  • scan date:2022-03-28 1:07 PM UTC
  • comment:First "View Tournaments" test - results

Summary

Automated checks

Failed instances 1

Tab stops

Failed instances 1

\ No newline at end of file diff --git a/documentation/UD_tests/2nd_round/AdminPage.html b/documentation/UD_tests/2nd_round/AdminPage.html new file mode 100644 index 0000000..52db905 --- /dev/null +++ b/documentation/UD_tests/2nd_round/AdminPage.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:https://asura.feal.no/admins
  • scan date:2022-04-25 3:45 PM UTC
  • comment:Second round of testing - Admins page

Summary

Automated checks

Failed instances 6

Tab stops

Failed instances 12

\ No newline at end of file diff --git a/documentation/UD_tests/2nd_round/EditTeams.html b/documentation/UD_tests/2nd_round/EditTeams.html new file mode 100644 index 0000000..c08b9e5 --- /dev/null +++ b/documentation/UD_tests/2nd_round/EditTeams.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:https://asura.feal.no/tournament/1/teams
  • scan date:2022-04-25 3:36 PM UTC
  • comment:Second round of testing - Edit teams page

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/2nd_round/EditTournament.html b/documentation/UD_tests/2nd_round/EditTournament.html new file mode 100644 index 0000000..b4e13ec --- /dev/null +++ b/documentation/UD_tests/2nd_round/EditTournament.html @@ -0,0 +1,2 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:https://asura.feal.no/tournament/1/manage
  • scan date:2022-04-25 3:32 PM UTC
  • comment:Second round of testing - Edit tournament page +

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/2nd_round/FrontPage.html b/documentation/UD_tests/2nd_round/FrontPage.html new file mode 100644 index 0000000..e017aac --- /dev/null +++ b/documentation/UD_tests/2nd_round/FrontPage.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:https://asura.feal.no/
  • scan date:2022-04-25 3:14 PM UTC
  • comment:Second "Tournaments" (front) page test - results

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/2nd_round/TournamentCreate.html b/documentation/UD_tests/2nd_round/TournamentCreate.html new file mode 100644 index 0000000..d856ff1 --- /dev/null +++ b/documentation/UD_tests/2nd_round/TournamentCreate.html @@ -0,0 +1,2 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:https://asura.feal.no/create
  • scan date:2022-04-25 3:33 PM UTC
  • comment:Second round of testing - Create tournament page +

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/2nd_round/TournamentOverview.html b/documentation/UD_tests/2nd_round/TournamentOverview.html new file mode 100644 index 0000000..2ff3bd0 --- /dev/null +++ b/documentation/UD_tests/2nd_round/TournamentOverview.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:https://asura.feal.no/tournament/1
  • scan date:2022-04-25 3:39 PM UTC
  • comment:Second round of testing - Tournament bracket overview page

Summary

Automated checks

Failed instances 14

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/UD_tests/2nd_round/TournamentsHistory.html b/documentation/UD_tests/2nd_round/TournamentsHistory.html new file mode 100644 index 0000000..db70359 --- /dev/null +++ b/documentation/UD_tests/2nd_round/TournamentsHistory.html @@ -0,0 +1 @@ +Accessibility Insights for Web FastPass results
Accessibility Insights for Web
Target page: Asura Tournament System

FastPass results

Scan details

  • target page url:https://asura.feal.no/history
  • scan date:2022-04-25 3:30 PM UTC
  • comment:Second round of testing - Tournament history page

Summary

Automated checks

Failed instances 0

Tab stops

Failed instances 0

\ No newline at end of file diff --git a/documentation/classDiagram.puml b/documentation/classDiagram.puml index 46e7b66..fc4a3d0 100644 --- a/documentation/classDiagram.puml +++ b/documentation/classDiagram.puml @@ -2,57 +2,46 @@ ' Internal development class diagram ' Describes database fields and object methods required +title Tournament System - Group 1 +skinparam Linetype ortho + +class User { + *user_id: Integer + google_id: String + name: String + email: String + isManager: Boolean +} + class Match { *match_id: Integer tournament_id: Integer - team_ids: Integer[] - scores: Integer[] + parentMatch_id: Integer + team1_id: Integer + team2_id: Integer winner_id: Integer - - Match constructor(tournament_id: Integer, team_ids: Integer[]) - void setScore(team_id: Integer, score: Integer) - void setWinner(winner_id: Integer) + tier: Integer } class Team { *team_id: Integer + tournament_id: Integer name: String - tournament_ids: Integer[] - - Team constructor(name: String) - void joinTournament(tournament_id: Integer) - void addPlayer(player_id: Integer) - void removePlayer(player_id: Integer) - void leaveTournament(tournament_id: Integer) -} -class Player { - *player_id: Integer - name: String - team_id: Integer - - - Player constructor(name: String) - void joinTeam(team_id: Integer) - void leaveTeam() } class Tournament { *tournament_id: Integer name: String + description: String + prize: String + teamLimit: Integer start_date: Date end_date: Date - manager_ids: Integer[] - team_ids: Integer[] - - Tournament constructor(name: String, start_date: Date, end_date: Date) - void addTeam(team_id: Integer) - void removeTeam(team_id: Integer) } -Team "2..*" -- "1..*" Tournament : "Plays in" -Tournament "1" -- "1..*" Match : contains -Player "1..*" -- "1..1" Team : "Belongs to" -Team "2..2" -- "1..*" Match : "Competes in" +Team "2..*" --- "1..1" Tournament : "Plays in" +Team "2..2" --- "1..*" Match : "Competes in" - -@enduml \ No newline at end of file +left to right direction +Tournament "1" --- "3..*" Match : contains +@enduml diff --git a/documentation/domainModel.puml b/documentation/domainModel.puml index 1d96e42..512d09d 100644 --- a/documentation/domainModel.puml +++ b/documentation/domainModel.puml @@ -5,9 +5,9 @@ class Match { *match_id: Integer Tournament Teams - Scores Winner } + class Team { *team_id Name @@ -15,6 +15,7 @@ class Team { Players Matches } + class Player { *player_id Name @@ -37,10 +38,16 @@ class Administrator { Manager-status } -Team "2..*" -> "1..*" Tournament : "Plays in" -Tournament "1" --> "1..*" Match : contains -Player "1..*" --> "1..1" Team : "Belongs to" -Team "2..2" --> "1..*" Match : "Competes in" +class User { + +} +Team "2..*" - "1..*" Tournament : "Plays in" +Tournament "1" -- "1..*" Match : contains +Player "1..*" -- "1..1" Team : "Belongs to" +Team "2..2" -- "1..*" Match : "Competes in" +Administrator "1..*" -- "0..*" Tournament : "Manages" +Administrator "1..*" -- "0..*" Team : "Manages" +User "0..*" --> "0..*" Tournament : "View overview" @enduml \ No newline at end of file diff --git a/documentation/entityRelationshipDiagram.png b/documentation/entityRelationshipDiagram.png new file mode 100644 index 0000000..3916063 Binary files /dev/null and b/documentation/entityRelationshipDiagram.png differ diff --git a/documentation/renders/classDiagram.png b/documentation/renders/classDiagram.png new file mode 100644 index 0000000..607c4bb Binary files /dev/null and b/documentation/renders/classDiagram.png differ diff --git a/documentation/renders/domainModel-old.pdf b/documentation/renders/domainModel-old.pdf new file mode 100644 index 0000000..4758892 Binary files /dev/null and b/documentation/renders/domainModel-old.pdf differ diff --git a/documentation/renders/domainModel.pdf b/documentation/renders/domainModel.pdf index 4758892..7258d25 100644 Binary files a/documentation/renders/domainModel.pdf and b/documentation/renders/domainModel.pdf differ diff --git a/documentation/renders/domainModel.png b/documentation/renders/domainModel.png new file mode 100644 index 0000000..9a9dd78 Binary files /dev/null and b/documentation/renders/domainModel.png differ diff --git a/documentation/renders/sequenceDiagramCreate.pdf b/documentation/renders/sequenceDiagramCreate.pdf new file mode 100644 index 0000000..2a1cea8 Binary files /dev/null and b/documentation/renders/sequenceDiagramCreate.pdf differ diff --git a/documentation/renders/sequenceDiagramCreate.png b/documentation/renders/sequenceDiagramCreate.png new file mode 100644 index 0000000..c9372e0 Binary files /dev/null and b/documentation/renders/sequenceDiagramCreate.png differ diff --git a/documentation/renders/sequenceDiagramLogin.pdf b/documentation/renders/sequenceDiagramLogin.pdf new file mode 100644 index 0000000..407778c Binary files /dev/null and b/documentation/renders/sequenceDiagramLogin.pdf differ diff --git a/documentation/renders/sequenceDiagramLogin.png b/documentation/renders/sequenceDiagramLogin.png new file mode 100644 index 0000000..50dac74 Binary files /dev/null and b/documentation/renders/sequenceDiagramLogin.png differ diff --git a/documentation/renders/sequenceDiagramManage.pdf b/documentation/renders/sequenceDiagramManage.pdf new file mode 100644 index 0000000..1c701ed Binary files /dev/null and b/documentation/renders/sequenceDiagramManage.pdf differ diff --git a/documentation/renders/sequenceDiagramManage.png b/documentation/renders/sequenceDiagramManage.png new file mode 100644 index 0000000..2161bbf Binary files /dev/null and b/documentation/renders/sequenceDiagramManage.png differ diff --git a/documentation/renders/sequenceDiagramManager.pdf b/documentation/renders/sequenceDiagramManager.pdf new file mode 100644 index 0000000..0ca8dad Binary files /dev/null and b/documentation/renders/sequenceDiagramManager.pdf differ diff --git a/documentation/renders/sequenceDiagramManager.png b/documentation/renders/sequenceDiagramManager.png new file mode 100644 index 0000000..4544c40 Binary files /dev/null and b/documentation/renders/sequenceDiagramManager.png differ diff --git a/documentation/renders/sequenceDiagramUser.pdf b/documentation/renders/sequenceDiagramUser.pdf new file mode 100644 index 0000000..8b769c4 Binary files /dev/null and b/documentation/renders/sequenceDiagramUser.pdf differ diff --git a/documentation/renders/sequenceDiagramUser.png b/documentation/renders/sequenceDiagramUser.png new file mode 100644 index 0000000..0522ff0 Binary files /dev/null and b/documentation/renders/sequenceDiagramUser.png differ diff --git a/documentation/renders/useCaseDiagram.pdf b/documentation/renders/useCaseDiagram.pdf new file mode 100644 index 0000000..dc2e04c Binary files /dev/null and b/documentation/renders/useCaseDiagram.pdf differ diff --git a/documentation/renders/useCaseDiagram.png b/documentation/renders/useCaseDiagram.png new file mode 100644 index 0000000..ff658e6 Binary files /dev/null and b/documentation/renders/useCaseDiagram.png differ diff --git a/documentation/screenshots/issue_board_week9.png b/documentation/screenshots/issue_board_week9.png new file mode 100644 index 0000000..65a506c Binary files /dev/null and b/documentation/screenshots/issue_board_week9.png differ diff --git a/documentation/screenshots/user_manual/administrator_view.png b/documentation/screenshots/user_manual/administrator_view.png new file mode 100644 index 0000000..9df3aff Binary files /dev/null and b/documentation/screenshots/user_manual/administrator_view.png differ diff --git a/documentation/screenshots/user_manual/asurabar_menu.png b/documentation/screenshots/user_manual/asurabar_menu.png new file mode 100644 index 0000000..84d2ec4 Binary files /dev/null and b/documentation/screenshots/user_manual/asurabar_menu.png differ diff --git a/documentation/screenshots/user_manual/create_tournament.png b/documentation/screenshots/user_manual/create_tournament.png new file mode 100644 index 0000000..e3548e2 Binary files /dev/null and b/documentation/screenshots/user_manual/create_tournament.png differ diff --git a/documentation/screenshots/user_manual/login_page.png b/documentation/screenshots/user_manual/login_page.png new file mode 100644 index 0000000..371f8ab Binary files /dev/null and b/documentation/screenshots/user_manual/login_page.png differ diff --git a/documentation/screenshots/user_manual/manage_administrators.png b/documentation/screenshots/user_manual/manage_administrators.png new file mode 100644 index 0000000..94037db Binary files /dev/null and b/documentation/screenshots/user_manual/manage_administrators.png differ diff --git a/documentation/screenshots/user_manual/manage_teams.png b/documentation/screenshots/user_manual/manage_teams.png new file mode 100644 index 0000000..059efeb Binary files /dev/null and b/documentation/screenshots/user_manual/manage_teams.png differ diff --git a/documentation/screenshots/user_manual/manage_tournament_bracket.png b/documentation/screenshots/user_manual/manage_tournament_bracket.png new file mode 100644 index 0000000..a2b4732 Binary files /dev/null and b/documentation/screenshots/user_manual/manage_tournament_bracket.png differ diff --git a/documentation/screenshots/user_manual/open_application.png b/documentation/screenshots/user_manual/open_application.png new file mode 100644 index 0000000..6fb3903 Binary files /dev/null and b/documentation/screenshots/user_manual/open_application.png differ diff --git a/documentation/screenshots/user_manual/tournament_edit.png b/documentation/screenshots/user_manual/tournament_edit.png new file mode 100644 index 0000000..cc49960 Binary files /dev/null and b/documentation/screenshots/user_manual/tournament_edit.png differ diff --git a/documentation/screenshots/user_manual/tournament_overview_administrator.png b/documentation/screenshots/user_manual/tournament_overview_administrator.png new file mode 100644 index 0000000..22f3f5a Binary files /dev/null and b/documentation/screenshots/user_manual/tournament_overview_administrator.png differ diff --git a/documentation/screenshots/user_manual/tournament_overview_user.png b/documentation/screenshots/user_manual/tournament_overview_user.png new file mode 100644 index 0000000..11cbab3 Binary files /dev/null and b/documentation/screenshots/user_manual/tournament_overview_user.png differ diff --git a/documentation/screenshots/user_manual/user_view.png b/documentation/screenshots/user_manual/user_view.png new file mode 100644 index 0000000..429551a Binary files /dev/null and b/documentation/screenshots/user_manual/user_view.png differ diff --git a/documentation/sequence_diagrams/sequenceDiagramCreate.puml b/documentation/sequence_diagrams/sequenceDiagramCreate.puml new file mode 100644 index 0000000..a07e577 --- /dev/null +++ b/documentation/sequence_diagrams/sequenceDiagramCreate.puml @@ -0,0 +1,27 @@ +@startuml Create Tournament +title Create Tournament +Actor Admin #palegreen +participant Website +database Server #brown +hide footbox + +Admin->Website: createTournament(Tournament) +activate Admin +activate Website +Website->Server: sendInfo(Tournament) +activate Server +Server-->Website: {status: success | failure} +deactivate Server +alt status = success +Website->Server: fetchInfo(Tournament) +activate Server +Server-->Website: sendInfo(Tournament) +deactivate Server +Website-->Admin: displayTournament(Tournament) +end +alt status = failure +Website-->Admin: displayError(error) +end +deactivate Admin +deactivate Website +@enduml \ No newline at end of file diff --git a/documentation/sequence_diagrams/sequenceDiagramLogin.puml b/documentation/sequence_diagrams/sequenceDiagramLogin.puml new file mode 100644 index 0000000..892570e --- /dev/null +++ b/documentation/sequence_diagrams/sequenceDiagramLogin.puml @@ -0,0 +1,26 @@ +@startuml Asura Tournament System +title Login +Actor Admin #palegreen +participant Website +database Server #brown +hide footbox + + Admin->Website: login(username, passwd) +activate Admin +activate Website + Website->Server: Login Request +activate Server + Server-->Website: {status: success | failure} +deactivate Server +alt status = success + Website-->Admin: "Login Successful" +opt if (isManager(user)) + Website->Admin: redirect(managerPage) + else + Website->Admin: redirect(adminPage) +end + +end +deactivate Website +deactivate Admin +@enduml \ No newline at end of file diff --git a/documentation/sequence_diagrams/sequenceDiagramManage.puml b/documentation/sequence_diagrams/sequenceDiagramManage.puml new file mode 100644 index 0000000..085b59f --- /dev/null +++ b/documentation/sequence_diagrams/sequenceDiagramManage.puml @@ -0,0 +1,101 @@ +@startuml Manage Tournament +title Manage Tournament +Actor Admin #palegreen +participant Website +database Server #brown +hide footbox + +alt Manage Teams + Admin->Website: manageTeamsButton() + activate Admin + activate Website + Website-->Admin: redirect(/tournament/id/teams) + opt Add + Admin->Website: addTeam(name,members) + opt Error + Website-->Admin: displayError(error) + end + Website->Server: addTeam(id,name,members) + activate Server + Server-->Website: postTeam(team) + deactivate Server + Website-->Admin: updateTeamList(team) + deactivate Admin + deactivate Website + end + opt Edit + 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 + + 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 + +alt Select Match Winner + Admin->Website: chooseWinner(match,team) + Website->Server: updateMatch(id:matchID,winner:teamID) +activate Server + Server-->Website: updateParentOf(child:matchID) +deactivate Server + Website-->Admin: displayTournament(Tournament) +end + +alt Delete Tournament + 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 +@enduml \ No newline at end of file diff --git a/documentation/sequence_diagrams/sequenceDiagramManager.puml b/documentation/sequence_diagrams/sequenceDiagramManager.puml new file mode 100644 index 0000000..c50bc46 --- /dev/null +++ b/documentation/sequence_diagrams/sequenceDiagramManager.puml @@ -0,0 +1,67 @@ +@startuml Manger View +title Manager View +Actor Manager #lime +participant Website +database Server #brown + +note left of Manager #white +**Managers can do** +**everything an admin can,** +**these are additions** +end note + +alt View Admins +activate Manager +activate Website + Manager->Website: viewAdmins() +activate Server + Website->Server: requestList(Admins) + Website<--Server: sendList(Admins) +deactivate Server + Manager<--Website: displayAdmins() +end + +alt Add Admins + Manager->Website: addAdmin(name,passwd) +activate Server + Website->Server: addUser(id,name,passwd) + Website<--Server: {status: success | failure} +deactivate Server + opt status = success + Manager<--Website: displayInfo(Success) + activate Server + Website->Server: requestList(Admins) + Website<--Server: sendList(Admins) + deactivate Server + Manager<--Website: displayAdmins() + + else status = failure + Manager<--Website: displayError(error) + end +end + +alt Remove Admins + Manager->Website: removeAdmin(name) +activate Server + Website->Server: removeUser(id) + Website<--Server: {status: success | failure} +deactivate Server + opt status = success + Manager<--Website: displayInfo(Success) + activate Server + Website->Server: requestList(Admins) + Website<--Server: sendList(Admins) + deactivate Server + Manager<--Website: displayAdmins() + + else status = failure + Manager<--Website: displayError(error) + end +deactivate Manager +deactivate Website +end + + + + +@enduml \ No newline at end of file diff --git a/documentation/sequenceDiagramUser.puml b/documentation/sequence_diagrams/sequenceDiagramUser.puml similarity index 94% rename from documentation/sequenceDiagramUser.puml rename to documentation/sequence_diagrams/sequenceDiagramUser.puml index a9e6b23..e489e93 100644 --- a/documentation/sequenceDiagramUser.puml +++ b/documentation/sequence_diagrams/sequenceDiagramUser.puml @@ -1,7 +1,9 @@ @startuml User View +title User View actor User #LightBlue participant Website database Server #Brown +hide footbox User->Website: viewTournament(Tournament) activate User diff --git a/documentation/useCaseDiagram.puml b/documentation/useCaseDiagram.puml new file mode 100644 index 0000000..bf46bfe --- /dev/null +++ b/documentation/useCaseDiagram.puml @@ -0,0 +1,81 @@ +@startuml Tournament System +title Tournament System - Group 1 + +skinparam actorStyle awesome +skinparam linetype ortho + +package Administrators { + actor Manager as mgr + actor Admin as adm + + note "Manager extends admin" as MgrNote + mgr .l. MgrNote + MgrNote .l.|> adm +} + +actor User as u1 + +left to right direction +rectangle System { + usecase "Login" as SysLogin + usecase "Manage admins" as SysMngAdm + + usecase "Create admin" as SysCrtAdm + usecase "Delete admin" as SysDelAdm + + usecase "View home page" as HomeView + + package Tournament { + usecase "Manage tournament" as MngTou + usecase "Create tournament" as TouCreateT + together { + usecase "Edit tournament" as TouEdit + usecase "Delete tournament" as TouDelete + usecase "View teams" as TeamView + } + together { + usecase "Add team" as TeamAdd + usecase "Delete team" as TeamDel + usecase "Manage team" as TeamMng + usecase "Add members" as MembAdd + usecase "Remove members" as MembDel + } + together { + usecase "View tournaments" as TouVtou + usecase "View matches" as TouVmatch + } + } + + note "If logged in as manager" as SysCrtAdmNote + SysLogin .r. SysCrtAdmNote + SysCrtAdmNote ..> SysMngAdm +} + +mgr --> SysLogin + +adm --> SysLogin +adm --> HomeView + +u1 --> HomeView + +SysLogin --> MngTou +SysLogin --> TouCreateT + +SysMngAdm -l--> SysCrtAdm +SysMngAdm -l--> SysDelAdm + +MngTou --> TouEdit +MngTou --> TouDelete +MngTou --> TeamView + +TeamView --> TeamAdd +TeamView --> TeamDel +TeamView --> TeamMng + +TeamMng --> MembAdd +TeamMng --> MembDel + + +HomeView --> TouVtou +HomeView --> TouVmatch +@enduml \ No newline at end of file