|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.egit.github.core.service.GitHubService
org.eclipse.egit.github.core.service.TeamService
public class TeamService
Service class for working with organization teams
| Field Summary |
|---|
| Fields inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
client |
| Constructor Summary | |
|---|---|
TeamService()
Create team service |
|
TeamService(GitHubClient client)
Create team service |
|
| Method Summary | |
|---|---|
void |
addMember(int id,
String user)
Add given user to team with given id |
void |
addRepository(int id,
IRepositoryIdProvider repository)
Add repository to team |
Team |
createTeam(String organization,
Team team)
Create the given team |
Team |
createTeam(String organization,
Team team,
List<String> repoNames)
Create the given team |
void |
deleteTeam(int id)
Delete the team with the given id |
Team |
editTeam(Team team)
Edit the given team |
List<User> |
getMembers(int id)
Get members of team with given id |
List<Repository> |
getRepositories(int id)
Get all repositories for given team |
Team |
getTeam(int id)
Get team with given id |
List<Team> |
getTeams(IRepositoryIdProvider repository)
Get teams associated with given repository |
List<Team> |
getTeams(String organization)
Get all teams in the given organization |
boolean |
isMember(int id,
String user)
Is the given user a member of the team with the given id |
boolean |
isTeamRepository(int id,
IRepositoryIdProvider repository)
Is given repository managed by given team |
void |
removeMember(int id,
String user)
Remove given user from team with given id |
void |
removeRepository(int id,
IRepositoryIdProvider repository)
Remove repository from team |
| Methods inherited from class org.eclipse.egit.github.core.service.GitHubService |
|---|
check, createPagedRequest, createPagedRequest, createPageIterator, createRequest, getAll, getAll, getClient, getId, verifyRepository |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TeamService()
public TeamService(GitHubClient client)
client - | Method Detail |
|---|
public Team getTeam(int id)
throws IOException
id -
IOException
public List<Team> getTeams(String organization)
throws IOException
organization -
IOException
public Team createTeam(String organization,
Team team)
throws IOException
organization - team -
IOException
public Team createTeam(String organization,
Team team,
List<String> repoNames)
throws IOException
organization - team - repoNames -
IOException
public Team editTeam(Team team)
throws IOException
team -
IOException
public void deleteTeam(int id)
throws IOException
id -
IOException
public List<User> getMembers(int id)
throws IOException
id -
IOException
public boolean isMember(int id,
String user)
throws IOException
id - user -
IOException
public void addMember(int id,
String user)
throws IOException
id - user -
IOException
public void removeMember(int id,
String user)
throws IOException
id - user -
IOException
public List<Repository> getRepositories(int id)
throws IOException
id -
IOException
public boolean isTeamRepository(int id,
IRepositoryIdProvider repository)
throws IOException
id - repository -
IOException
public void addRepository(int id,
IRepositoryIdProvider repository)
throws IOException
id - repository -
IOException
public void removeRepository(int id,
IRepositoryIdProvider repository)
throws IOException
id - repository -
IOException
public List<Team> getTeams(IRepositoryIdProvider repository)
throws IOException
repository -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||