Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
student-tournament-hub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Schneider Stefan
student-tournament-hub
Commits
92877877
Commit
92877877
authored
1 year ago
by
Häderle Marius
Browse files
Options
Downloads
Plain Diff
08.01.2024 - added method updateTeamName to Service
#24
parents
ac41eb7e
aedebba2
No related branches found
No related tags found
1 merge request
!7
Dev in Main Merge
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sth-backend/src/main/java/hdm/mi/sthbackend/service/TournamentService.java
+17
-3
17 additions, 3 deletions
...ain/java/hdm/mi/sthbackend/service/TournamentService.java
with
17 additions
and
3 deletions
sth-backend/src/main/java/hdm/mi/sthbackend/service/TournamentService.java
+
17
−
3
View file @
92877877
...
...
@@ -208,13 +208,27 @@ public class TournamentService {
return
teamId
;
}
public
Tournament
getTournament
(
UUID
tournamentId
)
throws
TournamentIdNotFoundException
{
Tournament
tournament
=
tournamentRepository
.
findById
(
tournamentId
)
.
orElseThrow
(()
->
new
TournamentIdNotFoundException
(
tournamentId
));
log
.
debug
(
tournament
+
"is found"
);
return
tournament
;
}
public
void
deleteTournament
(
UUID
tournamentId
)
throws
TournamentIdNotFoundException
{
Tournament
tournamentToDelete
=
tournamentRepository
.
findById
(
tournamentId
)
.
orElseThrow
(()
->
new
TournamentIdNotFoundException
(
tournamentId
));
tournamentRepository
.
delete
(
tournamentToDelete
);
log
.
debug
(
"Tournament "
+
tournamentId
+
" has been deleted"
);
}
/*
Weitere Methoden:
UpdateTeamScore Marius
Tunier beenden
GetTournament Leon
DeleteTournament Leon
User
User Mattis
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment