Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pa165 Ice Hockey Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tomáš Madeja
pa165 Ice Hockey Manager
Commits
9f1982ed
There was an error fetching the commit references. Please try again later.
Commit
9f1982ed
authored
3 years ago
by
Ján Dovjak
Browse files
Options
Downloads
Patches
Plain Diff
doc: TeamManagerFacade
parent
489fc013
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/cz/muni/fi/pa165/icehockeymanager/facades/TeamManagerFacade.java
+31
-0
31 additions, 0 deletions
.../fi/pa165/icehockeymanager/facades/TeamManagerFacade.java
with
31 additions
and
0 deletions
src/main/java/cz/muni/fi/pa165/icehockeymanager/facades/TeamManagerFacade.java
+
31
−
0
View file @
9f1982ed
...
...
@@ -2,16 +2,47 @@ package cz.muni.fi.pa165.icehockeymanager.facades;
import
cz.muni.fi.pa165.icehockeymanager.dto.PlayerCreateDTO
;
import
cz.muni.fi.pa165.icehockeymanager.dto.PlayerDTO
;
import
cz.muni.fi.pa165.icehockeymanager.exceptions.UnknownPlayerException
;
import
cz.muni.fi.pa165.icehockeymanager.exceptions.UnknownTeamException
;
import
java.util.Collection
;
/**
* Facade with functionality for the team manager,
* such as managing players within team.
*/
public
interface
TeamManagerFacade
{
/**
* Creates new player and adds it to team given by teamId
*
* @param playerCreateDTO DTO object for creating new player
* @param teamId ID of the team to add the player to
*/
void
recruitNewPlayer
(
PlayerCreateDTO
playerCreateDTO
,
long
teamId
);
/**
* Adds player with playerId to team with teamId
*
* @param playerId Identifier of the player
* @param teamId Identifier of the team
*/
void
recruitVeteranPlayer
(
long
playerId
,
long
teamId
);
/**
* Retrieve all players without team
*
* @return Collection of free players
*/
Collection
<
PlayerDTO
>
getFreePlayers
();
/**
* Delete player with playerId from team with teamId
*
* @param playerId Identifier of player
* @param teamId Identifier of team
* @throws UnknownPlayerException If playerId does not match any player
* @throws UnknownTeamException If teamId does not match any team
*/
void
firePlayer
(
long
playerId
,
long
teamId
);
}
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