Package com.priint.pubserverapi.team
Interface TeamServiceLocal
public interface TeamServiceLocal
Local interface for managing teams.
This interface defines methods for creating queries, retrieving, teams. It provides a contract for interacting with team entities.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignPersonToTeam(PersonId personId, TeamId teamId) Assigns a person to the teamCreates a newTeam.Creates a newTeamQueryfor querying teams.voidDeletes aTeam.getTeamById(TeamId teamId) Retrieves aTeamby its unique identifier.voidunAssignPersonFromTeam(PersonId personId, TeamId teamId) Un-assigns a person from the teamvoidUpdates aTeam.
-
Method Details
-
createTeamQuery
TeamQuery createTeamQuery()Creates a newTeamQueryfor querying teams.- Returns:
- a new
TeamQueryinstance
-
getTeamById
Retrieves aTeamby its unique identifier.- Parameters:
teamId- the identifier of the team to retrieve- Returns:
- an
Optionalcontaining theTeamif found, or an emptyOptionalif not - Throws:
TeamServiceException
-
create
Creates a newTeam.- Parameters:
team- the team to create- Returns:
- the unique identifier of the newly created team
- Throws:
TeamServiceException
-
delete
Deletes aTeam.- Parameters:
teamId- the team id to delete- Throws:
TeamServiceException
-
update
Updates aTeam.- Parameters:
team- the team to update- Throws:
TeamServiceException
-
assignPersonToTeam
Assigns a person to the team- Parameters:
personId- person idteamId- team id
-
unAssignPersonFromTeam
Un-assigns a person from the team- Parameters:
personId- person idteamId- team id
-