public class TeamService
extends java.lang.Object
| Constructor and Description |
|---|
TeamService(TeamStorage teamStorage)
Constructor for TeamService.
|
| Modifier and Type | Method and Description |
|---|---|
Team |
createTeam(Team team)
Create new Team that will be available for all users.
|
void |
createTeamMember(TeamMember teamMember)
Create new TeamMember that will be available for all users.
|
void |
deleteTeam(java.lang.String teamId)
Delete Team identified by its id and check if username has permission to
delete it.
|
void |
deleteTeamMember(java.lang.String teamMemberId)
Delete TeamMember identified by its id and check if username has permission to
delete it.
|
java.util.List<TeamMember> |
getMembersList(java.lang.String teamID)
Retrieves the list of Teams with offset, limit and a keyword that can be
empty
|
java.util.List<Team> |
getTeams()
Retrieves the list of Teams with offset, limit and a keyword that can be
empty
|
java.util.List<Team> |
getTeamsList(java.lang.String userName)
Retrieves the list of Teams with offset, limit and a keyword that can be
empty
|
Team |
updateTeam(Team team)
Update an existing Project on datasource.
|
public TeamService(TeamStorage teamStorage)
Constructor for TeamService.
teamStorage - a TeamStorage object.public Team createTeam(Team team) throws java.lang.Exception
EntityExistsException will be thrown.team - Team to createTeam in datasourcejava.lang.Exception - when Team already exists or an error occurs while
creating Team or its attached imagepublic Team updateTeam(Team team) throws java.lang.Exception
EntityNotFoundException will be thrown.team - dto to update on storeTeam in datasourcejava.lang.Exception - when Exception is thrown or an error
occurs while saving Projectpublic void deleteTeam(java.lang.String teamId)
throws java.lang.Exception
teamId - technical identifier of Teamjavax.persistence.EntityNotFoundException - if Team wasn't foundjava.lang.IllegalAccessException - if user is not allowed to delete Teamjava.lang.Exception - if any.public java.util.List<Team> getTeamsList(java.lang.String userName) throws java.lang.Exception
userName - a String object.Team that contains the list of Teamsjava.lang.Exception - if any.public java.util.List<TeamMember> getMembersList(java.lang.String teamID) throws java.lang.Exception
teamID - a String object.Team that contains the list of Teamsjava.lang.Exception - if any.public java.util.List<Team> getTeams() throws java.lang.Exception
Team that contains the list of Teamsjava.lang.Exception - if any.public void createTeamMember(TeamMember teamMember) throws java.lang.Exception
EntityExistsException will be thrown.teamMember - TeamMember to createjava.lang.Exception - when TeamMember already exists or an error occurs while
creating TeamMember or its attached imagepublic void deleteTeamMember(java.lang.String teamMemberId)
throws java.lang.Exception
teamMemberId - technical identifier of TeamMemberjavax.persistence.EntityNotFoundException - if TeamMember wasn't foundjava.lang.IllegalAccessException - if user is not allowed to delete TeamMemberjava.lang.Exception - if any.Copyright © 2003–2020 eXo Platform SAS. All rights reserved.